-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from mbluemer/move-generation
Move generation
- Loading branch information
Showing
5 changed files
with
274 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
#include <iostream> | ||
#include "Move.h" | ||
|
||
void Move::printMessage() | ||
Move::Move() : moves() {}; | ||
|
||
Move::Move(int start) | ||
{ | ||
moves = {start}; | ||
} | ||
|
||
void Move::addMove(int move) | ||
{ | ||
moves.push_back(move); | ||
} | ||
|
||
void Move::removeLast() | ||
{ | ||
moves.pop_back(); | ||
} | ||
|
||
bool Move::isEmpty() | ||
{ | ||
return moves.empty(); | ||
} | ||
int Move::length() | ||
{ | ||
std::cout << "Here is an example message" << std::endl; | ||
return moves.size(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
#include <iostream> | ||
#include <cstdint> | ||
#include <vector> | ||
#include "BitBoard.h" | ||
#include "Move.h" | ||
|
||
int main(int argc, const char * argv[]) { | ||
std::cout << "Hello world!" << std::endl; | ||
BitBoard board(16384, 2097280, 16384); | ||
std::vector<Move> moves = board.generateImmediateJumps(16384); | ||
for (Move move : moves) { | ||
for (int x : move.getMoves()) { | ||
std::cout << x << std::endl; | ||
} | ||
} | ||
return 0; | ||
} |