GithubHelp home page GithubHelp logo

chess_game's Introduction

wakatime

A classic Chess game, written in Ruby. It was developed applying Test Driven Development techniques, automating tests with RSpec. This was the final project from TheOddinProject Ruby programming curriculum. The game can be played as multiplayer or against a bot. Play it at Replit!

Ruby Ruby

Rules

If you’ve never played, be sure to read up on the rules (see the Wikipedia Page) first. Also checkout Chess.com

The game is played using chess notation

K: King, Q: Queen, B: Bishop, R: Rook, N: Knight, P: Pawn

x: Capturing, =: Promoting to , +: Check, #: Checkmate

Here's a few examples:

     e4 | Pawn (P ommited) to e4
    Nc4 | Knight to c4
   Qd7+ | Queen to d7, + representing a check
  Kxb5# | King captures at b5, # representing a checkmate
   exf6 | Pawn (from column e) captures at f6
 fxg7=Q | Pawn (from column f) captures at g7 and gets promoted to a Queen

Dependencies

Ruby:

  • "3.1.2"

Gems:

  • rspec
  • ruby_figlet
  • colorize

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.