Code Monkey home page Code Monkey logo

warzone's People

Contributors

danielrafail avatar kkodmani avatar leguu avatar ramirafeh avatar vaansh avatar

Watchers

 avatar  avatar

warzone's Issues

Implement testStartupPhase()

  1. use the loadmap command to select a map from a list of map files as stored in a directory,
    which results in the map being loaded in the game.
  2. use the validatemap command to validate the map (i.e. it is a connected graph, etc – see assignment 1).
  3. use the addplayer command to enter players in the game (2-6 players)
  4. use the gamestart command to
    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

Implement testGameLoop()

(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

Add gamestart command

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

transform function issue

The latest build would fail because we are missing a #include at the top for the transform function.

Screenshot 2022-10-10 185147

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.