Git Product home page Git Product logo

humble-chess's Introduction

Instructions for Use

Requires Ruby and Rspec.

To set up: gem install bundle, then bundle install rspec

To test: run rspec

To run without Rspec: Go to game.rb and uncomment the two bottom lines, then run ruby lib/game.rb from the main directory.

Alternatively, load game.rb in pry and create a new instance of Game, then call run on that instance.

How to set up board:

When the game is run, the console will ask for an input of 4 characters. The first two are the chessboard coordinates (between A1 and H8). The third is the color of the piece to be placed (b or w). The fourth is the type of piece, these are denoted by the first letter of the piece's name. Note that King is k and Knight is n. All letters must be lowercase.

For example, c3bn places a black Knight at C3, d1wp places a white pawn at D1.

Alternatively, use default to create a classic chessboard config. All previous changes will be lost when using this command.

humble-chess's People

Contributors

txie1993 avatar

Watchers

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