20.02.2013 Views

ZX Computings - OpenLibra

ZX Computings - OpenLibra

ZX Computings - OpenLibra

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

p<br />

58<br />

Challenge your <strong>ZX</strong>81 to this<br />

hundred-year old board game,<br />

in a program written by W P<br />

Davies of Bristol.<br />

Othello was invented in the<br />

1 880s. The game is based on<br />

the older game Reversi, but has<br />

a restriction on the opening<br />

moves. Othello is played on a<br />

draughts board, with doublesided<br />

pieces. As you'll see at<br />

the beginning, there are four<br />

pieces on the board. You place<br />

your own piece so that at least<br />

one of the opponent's pieces is<br />

'trapped' between a piece of<br />

yours and your new piece. The<br />

opponent's piece or pieces then<br />

flip over to become your pieces.<br />

The winner is the person with<br />

16K Cames<br />

the most pieces on the board<br />

when the board is filled, or<br />

when neither of you can move.<br />

The player's pieces are Os,<br />

and the computer's pieces are<br />

asterisks. The board is updated<br />

after each move, together with<br />

a confirmation of the move and<br />

the current score. There is also<br />

a cue for the next move, as well<br />

as an end-game routine.<br />

If you want a faster game,<br />

add 675 SLOW, 1035 PAUSE<br />

75, 1038 FAST. This modification<br />

blanks the screen while the<br />

clever <strong>ZX</strong> 81 works out its next<br />

devastating move, reducing<br />

thinking time to around 15<br />

seconds.<br />

<strong>ZX</strong> COMPUTING SUMMER IS <strong>ZX</strong> COI

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!