Tic tac toe in MAPLE

Everyone knows how to play tic tac toe - including MAPLE. The MAPLEV4 tic tac toe package and the MAPLEV5 tic tac toe package contain several routines designed to interactively play tic tac toe with you. (It does not win every time. I left out a few branches of the "decision tree" on purpose.)

If you have MAPLE V4 or better and Windows 3.1 or better then here is how to load the tic tac toe package:

If you have MAPLE V5, use tictactoe_v5.mpl instead.

Playing tic-tac-toe interactively with MAPLE V5

tictactoe_v5.mws,wdj,11-2-98

read(`c:/maplev4/share/games/tictactoe/tictactoe_v5.mpl`);
#read(`c:/maplev4/share/games/tictactoe/tictactoe_v4.mpl`); #for MAPLEV4

tictactoe();

[Maple Math]

[Maple Math]

[Maple Math]

Y

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

1

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

9

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

8

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

3

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

6

[Maple Math]

[Maple Math]

[Maple Math]

The program, as you can see, does not win every time sinec it's been intentionally been programmed to lose once-in-awhile.


created 11-2-98 by wdj