Initial commit
This commit is contained in:
commit
4f4397b3e1
48 changed files with 2002 additions and 0 deletions
24
NimGame/main.cpp
Normal file
24
NimGame/main.cpp
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#include "client/GameClient.h"
|
||||
#include "game/nimgame/NimGame.h"
|
||||
#include "game/nimgame/player/ComputerPlayer.h"
|
||||
#include "game/nimgame/player/HumanPlayer.h"
|
||||
#include "game/nimgame/player/OmaPlayer.h"
|
||||
#include "io/ConsoleWriter.h"
|
||||
#include <iostream>
|
||||
|
||||
using namespace atlas;
|
||||
int main() {
|
||||
|
||||
atlas::io::ConsoleWriter writer;
|
||||
atlas::game::nimgame::player::HumanPlayer human{"Fritz"};
|
||||
atlas::game::nimgame::player::ComputerPlayer computer{"Computer"};
|
||||
atlas::game::nimgame::player::OmaPlayer oma{"Gisela"};
|
||||
game::nimgame::NimGame game{writer};
|
||||
game.addPlayer(&human);
|
||||
game.addPlayer(&oma);
|
||||
game.addPlayer(&computer);
|
||||
client::GameClient client{game};
|
||||
client.go();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue