Code Monkey home page Code Monkey logo

chess's Introduction

CheSS

Chess game built in C++ using OOP principles.

uml-1

Highlights:

  1. Inheritance structure for pieces and players, providing compartmentalization for different aspects of the game.
  2. Allows player vs player, player vs computer, and computer vs computer.
  3. Three different levels for the computer, with the highest level being able to detect capture moves and avoid capture.
  4. Observer design pattern to update the terminal and graphical display.
  5. Smart pointers throughtout for automatic memory management.
  6. A setup mode, which allows the user to create their own starting position and play from there.

How to download on local:

  1. Run make.
  2. Make sure to have X11 forwarding enabled for the graphical window.
  3. Run the executable./chess. This will take in input until the end of file execution.

Setup Mode

  1. Type in setup to enter setup mode. You may only enter setup mode if you're not in a game.
  2. In setup mode, you start with an empty chess board and you place pieces as you wish.

Game Mode

  1. Type in game human human to enter a game.
  2. Or type game computer1 or game computer2 to play against a computer.

See the test folder for example input.

chess's People

Contributors

coenzeng avatar sudhish3120 avatar sinehamanivannan avatar

Stargazers

 avatar

Watchers

 avatar

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.