board-games

Flexible library or server for board games (chess or others)?

Hello, I'm looking for a program or library that I could use for experimenting with board games (chess mostly, but not necessarily -- other similarly complex board games are OK too). I'll test different game-playing algorithms. This is what I need: I'd like, if possible, to make my program play against players like gnuchess and craft...

A rule for Checkers(draughts) Deadlock

I am writing a program that play Checkers against human, with a min-max game tree. Everything went fine until facing a problem. Here is the scenario described as an illustration. ->Let X be a black cell, 0 be an empty cell, B be a black stone and W be a white stone; ->The board is showed as follows; | X | B | X | B | X | B | X | B | X ...

Static Evaluation Function for Checkers

Hi all! I'm trying to write an evaluation function for a game of checkers that I'm developing but I can't find the right documentation. I've read several documents on the web witch describe different techniques for either writing one or letting the computer find it(using genetic algorithms or Bayesian learning) but they're too complicat...

Representing a Monopoly board in flash?

I'm brand new to Flash (and game programming, really), but want to learn a bit of it. My overall learning project is to create a Monopoly clone in Flash. Unfortunately, I'm struggling to get over even my first hurdle - how to create the board graphically, and how then to deal with it in the code. So far, my thoughts are to break the boar...

Opensource simple card game/solitaire engine example needed.

I am looking forward to write a card solitaire game, including AI (if this simple can be called so) playing algorithm. No multiplayer facilities needed. I suppose there are some wheels I need not to invent myself in this project (as deck/cards/table object model, deck shuffling algorithms, etc, and, especially, cards visualisation stuff)...

Java ArrayList Comparison- TicTacToe

I am trying to make a really simple Tic-Tac-Toe game. I have stored values of "X" and "O" in a 0-8 ArrayList (3x3 square, essentially). I can do the following for each instance of a winning situation: if ((newBoard().get(0)).equals("X") && (newBoard().get(1)).equals("X") && (newBoard().get(2)).equals("X")){ System.out.println("...

OutOfBoundsException for TicTacToe Game; Issue: arrays?

I am the beginnings of writing a tic-tac-toe game. I just ran it and got the following stack trace: Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:571) at java.util.ArrayList.get(ArrayList.java:349) at TicTacToe.isMarked(TicTacToe.java:23) at TicTac...