Giter Site home page Giter Site logo

oop-chess's Introduction

Chess game

We're going to implement the chess play simulation with simplified rules and some console animation of the play. We don't have to take care of:

  • mating and checking,
  • castles,
  • beating (by risers) in flight,
  • the possibility of the (first) movement of a pawn by two squares, but of course if you want you can think of including some of these features into your game models.

We would like to provide a model of chess pieces, where 2 players plays on 8x8 chess board. The first player is white player, the second is black. There can always be only a single piece on board field and players beat each other by taking the same field by some other piece.

The simulation finishes when:

  • every player used 50 moves
  • some player cannot move by any piece
  • one of the kings has been beaten

The whole simulation can be done in rando manner - there is no need to implement some player strategy for the purpose of this task.

You can use symbols from this sample board to implement your console animation:

╔═╤═╤═╤═╤═╤═╤═╤═╗
║♜│♞│♝│♛│♚│♝│♞│♜║
╟─┼─┼─┼─┼─┼─┼─┼─╢
║♟│♟│♟│♟│♟│♟│♟│♟║
╟─┼─┼─┼─┼─┼─┼─┼─╢
║ │█│ │█│ │█│ │█║
╟─┼─┼─┼─┼─┼─┼─┼─╢
║█│ │█│ │█│ │█│ ║
╟─┼─┼─┼─┼─┼─┼─┼─╢
║ │█│ │█│ │█│ │█║
╟─┼─┼─┼─┼─┼─┼─┼─╢
║█│ │█│ │█│ │█│ ║
╟─┼─┼─┼─┼─┼─┼─┼─╢
║♙│♙│♙│♙│♙│♙│♙│♙║
╟─┼─┼─┼─┼─┼─┼─┼─╢
║♖│♘│♗│♕│♔│♗│♘│♖║
╚═╧═╧═╧═╧═╧═╧═╧═╝

or design your own 😉

Deadline for this task is 18.05.2022 (11:59 😎)

oop-chess's People

Contributors

sdziuda avatar avan1235 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.