Giter Site home page Giter Site logo

chess's Introduction

Chess: Ruby Final Project

Build a command line Chess game where two players can play against each other.

Description

The final project on the Ruby Programming section of The Odin Project consists of building a chess program that is playable on the command line with two players.The program must be properly constrained so that it prevents players from making invalid moves. The program should also have the ability to save progress at any point in the game. Remember to use your problem solving skills such as pseudocode and divide and conquer to help you through this project.

Getting Started

Executing program

  • Access program folder through the command line
  • Enter code below:
ruby lib/main.rb

How to Play

  • A chessboard is made up of 64 squares placed in eight rows and eight columns.
  • Starting top to bottom, each row is numbered [0-7].
  • Starting left to right, each column is numbered [0-7]
  • When prompted to move a chess piece, target a piece on any square by entering in the coordinates as so: (row, column) (omit parenthesis)
It's color black's turn.
Enter a piece to move:
> 1, 1

Sources

The Odin Project

chess's People

Contributors

joethyr 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.