Code Monkey home page Code Monkey logo

checkers's Introduction

This application validates a proposed move during a checker game.  It handles only regular moves with the caveat that a piece may not moved into a square that is occupied by another piece of either color.

The position of all pieces at any given time is persisted in the database.  No performance tuning such as caching is attempted in this solution.

The x and y coordinates are taken from the checkers board images shown here:  http://www.jimloy.com/checkers/rules2.htm
[1,1] denotes the bottom left square
[8,1] denotes the bottom right square
[8,1] denotes the top left square
[8,8] denotes the top right square

The starting board has following fixtures in the following positions:
pieces(:white_1) in [1,1]
pieces(:white_4) in [7,1]
pieces(:white_12) in [7,3]
pieces(:red_1) in [2,6]
pieces(:red_4) in [8,6]
pieces(:red_12) in [8,8]


checkers's People

Contributors

mspwong avatar

Stargazers

 avatar

Watchers

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