Giter Site home page Giter Site logo

dominionquest's People

Contributors

mislavjaksic avatar

Watchers

 avatar  avatar

dominionquest's Issues

Implement more graceful testbed

There's a lot of setup code in each test.

Part of it is because GameState needs to be instantiated and filled with other objects regardless of which object is being tested. That is because all the classes are interconnected: a sign of a good board game and a sign of an architecture that needs to be improved.

Refactor the setup process for unit tests.

Implement victory condition

A game of Dominion ends when either:

  • 3 or 4 supply piles are empty
  • Province or Colony piles are empty

Then the victory points are summed up.

Implement the condition and calculation.

Implement AI controller

Currently the game is controlled through the command line interface.

Create an AI controller that plays against a human player or that can play against another AI.

Implement game log

Log each time the GameState changes, for example:

  • a card is trashed
  • a card is discarded
  • a card is played
  • a card is bought from supply
  • and so on...

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.