leguu / warzone Goto Github PK
View Code? Open in Web Editor NEWCOMP 345 Warzone implementation
COMP 345 Warzone implementation
Pretty much already implemented, just copy paste what's in GameEngine there.
It should remove itself from the previous owner's list of territories.
(1) a player receives the correct number of army units in the reinforcement phase (showing different cases);
(2) a player will only issue deploy orders and no other kind of orders if they still have army units in their reinforcement pool;
(3) a player can issue advance orders to either defend or attack, based on the toAttack() and toDefend() lists;
(4) a player can play cards to issue orders;
(5) a player that does not control any territory is removed from the game;
(6) the game ends when a single player controls all the territories. All of this must be implemented in a single .cpp/.h file duo named GameEngine.cpp/GameEngine.h, except the issueOrder() method, which is a member of the Player class
a) fairly distribute all the territories to the players
b) determine randomly the order of play of the players in the game
c) give 50 initial army units to the players, which are placed in their respective reinforcement pool
d) let each player draw 2 initial cards from the deck using the deck’s draw() method
e) switch the game to the play phase
Should play the card, remove it from the hand, and put it in the deck.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.