Giter VIP home page Giter VIP logo

breakthrough's Introduction

Breakthrough

Breakthrough game, AI agents playing.

Contributors

Ali Shahram Musavi, Swomma Roy and Sirajus Salekin

How To Play

  1. Make sure you have python 3 installed.
  2. Run python game.py and follow the instructions.
  3. If you want to play with Evasive and House Lannister, type 1 3 when prompted
    1. Evasive
    2. Conquerer
    3. House Lannister
    4. House Stark
  4. After choosing the opponents, you need to choose the board you want to play on. For example, if you want to play on a (3x3, 1) board, Enter 3 3 1, respectively.

Unit Testing

Simply run the testTransition.py file:

python testTransition.py

Progress

  • Finished implementing Board Class methods

    • get_moves(position)
    • is_valid(source, destination)
    • get_sym(position)
    • get_direction(position)
    • Integrated display_state()
    • Integrated terminal_state()
    • Add self.turn to the Board and check before moving any piece to ensure the integrity of the game
    • Implement move_generator(player) method that will provide all the moves for a particular player
  • Test coverage for finished methods

    • get_moves(position)
    • is_valid(source, destination)
    • all_moves(player)
    • move(position, direction)
    • get_sym(position)
    • get_direction(position)
    • display_state()
    • terminal_state()

ToDo

  • Finish implementing the Agent class
  • Decide whether to implement a function or class for Game
  • Finish minimax tree
  • Implement conquerer and 2 more utility functions

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.