File: Test.cpp

package info (click to toggle)
bastet 0.43.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 436 kB
  • sloc: cpp: 2,105; sh: 45; makefile: 28; xml: 22
file content (22 lines) | stat: -rw-r--r-- 434 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "Well.hpp"
#include "BastetBlockChooser.hpp"
#include <ios>

using namespace Bastet;
using namespace std;

int main(){
  Well *w=new Well;
  BlockPosition p;
  p.Drop(Z,w);
  w->LockAndClearLines(Z,p);
  cout<<w->PrettyPrint()<<endl;
  cout<<"Score:"<<Evaluate(w)<<endl;

  w->Clear();
  BlockPosition p2;
  p2.Drop(I,w);
  w->LockAndClearLines(I,p2);
  cout<<w->PrettyPrint()<<endl;
  cout<<"Score:"<<Evaluate(w)<<endl;  
}