Coder Social home page Coder Social logo

clojure-othello's Introduction

Othello (Clojure Stylez)

This is a Clojure implementation of the incredibly awesome Othello board game. I plan on making this into a ClojureScript project, as well as maybe a desktop OpenGL version just as an excuse to play with OpenGL because...it's OpenGL.

Installation

Nothing to install yet though feel free to take a fork full and toy with the code. I will update this as much as I can.

Usage

Something like lein trampoline run should have you up and running. This assumes you have leiningen installed and all happy.

The game will start with the black player making the first move and the on it goes. The input for the turns as the game will tell you is ROW then COLUMN. So 3d, for example.

Basically nearly anything including giving it a stern look will make it crap itself, so be gentle and enjoy.

Also the moves algorithms are still kinda broken in some circumstances, so don't be surprised if things go a little wonky.

In fact there are a lot of things missing but hey, it's Othello and Clojure so it's awesome be association. \o/

Options

Initial Options I might put in a conf file of some description.

Examples

Current output for an 8x8 board, isn't it PRETTY!

Scores !
Black : 2
White : 2
    A   B   C   D   E   F   G   H
 1|   |   |   |   |   |   |   |   |
 2|   |   |   |   |   |   |   |   |
 3|   |   |   |   |   |   |   |   |
 4|   |   |   | W | B |   |   |   |
 5|   |   |   | B | W |   |   |   |
 6|   |   |   |   |   |   |   |   |
 7|   |   |   |   |   |   |   |   |
 8|   |   |   |   |   |   |   |   |
Black Player's Turn!
Enter Row and Column Number (eg. 3d) or Q/q to quit:

Bugs

  • No victory condition checking.
  • Input handling is mediocre and there is no real reporting back to the user about what they've done.
  • Lack of proper tests.
  • ASCII is cool and all, but ClojureScript/Elm/SDL beckon... Future is a web game.

License

Copyright © 2013 Sean Chalmers

Distributed under the Eclipse Public License, the same as Clojure.

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.