Skip to content

linkonsat/chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

A command line version of chess.

Some Concepts

  1. Object Orientated Programming
  2. Composition
  3. Single Responsibility
  4. Using interfaces
  5. Test Driven Development

Running the game

You can also view the game here on Replit. Please note that you cannot install gems such as msgpack in replit. You can play a game, but will not be able to save it. Therefore it is highly recommended to simply clone the repository and install the appropriate gems to enable all features. Make sure to uncomment out msgpack in game.rb!

Prequisites

Make sure you have the Ruby gem downloaded. Here is a good guide Make sure you have the RSpec gem downloaded as well. Which is as easy as

gem install rspec

Next, make sure you have git installed. You can find the guide here

Using Command Line

  1. Clone the repository by running git clone [email protected]:linkonsat/chess.git
  2. cd into the appropriate directory that contains the chess game.
cd <The directory here>
  1. Ensure your on the directory location containing main_game.rb
  2. enter ruby main_game.rb in the console

Lessons Learned

  1. Scaling an application using a Test Driven Development to ensure methods aren't breaking upon scaling up.
  2. Used an Object Oriented Programming style to create objects to represent separate concerns and build interacting objects with a user facing object.
  3. How to apply data structures such as a doubly linked list to handle data to enable different ways to manipulate the game state.
  4. How to use git branches to create feature branches to keep the main branch in a consistently working stable state.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published