Git Product home page Git Product logo

magcave's Introduction

#Magcave COMP472 Fall 2012

  • Sandy Carter 1121057
  • Zoe Briscoe 9611754

##Program Function

Minimax code is included in minimax.cpp and minimax.h

The gamebord class interfaces with ncurses to draw on the stdscreen. It is also in charge of drawing the board on which the game is played.

The gameinfo class is used to define the rules of the game. It determines when a player has won or if a checkmate exists.

The program has been tested under i686 GNU/Linux with the 3.6.6 Linux kernel as well as under Windows using cygwin.

##Unpacking and Compiling instructions

Under Linux or cygwin: (You must have the ncurses dev libraries installed)

  • untar: - $ tar xfvj magcave-2.tar.bz2
  • compile using make:
    • $ make
    • or compile manually:
      • $ g++ magcave.cpp minimax.cpp gameboard.cpp gameinfo.cpp -I/usr/include/ncurses -lncurses -o magcave

##Running instructions

Under Linux or cygwin:

  • $ ./magcave

##Keyboard Input

  • q: quits the game
  • k: kills the window
  • w/up key: move up
  • s/down key: move down
  • a/left key: move left
  • d/right key: move right
  • return key: select position and end turn

magcave's People

Contributors

bwrsandman avatar zbriscoe avatar

Stargazers

 avatar

Watchers

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