Skip to content
Triples game
Fortran
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Readme.txt
build.sh
playra.f
playrb.f
trpls.exe
trpls.f
trplsmon.f

Readme.txt

C*******************************************************************
C THIS PROGRAM PLAYS THE GAME OF TRIPLES INTERACTIVELY.
C THE PROGRAM INCLUDES A VARIABLE PLY LOOK-AHEAD WITH ALPHA-BETA
C PRUNING AND A HEURISTIC EVALUATION FUNCTION (SEE EVAL ROUTINE).
C
C THE USER (PLAYER A) IS GIVEN THE CHOICE OF MOVE FOR THE GAME,
C THE SELECTION OF TWO POSSIBLE GAME DIFFICULTY LEVELS,
C AND THE CHOICE OF 23 GAME CONFIGURATIONS.
C THE GAME PROCEEDS WITH A SERIES OF MOVES BY THE PROGRAM AND THE
C USER UNTIL A WIN BY EITHER PLAYER, OR A TERMINATE COMMAND FROM
C THE USER.
C
C*******************************************************************
C
C INPUT FORMAT:
C   COL 1 - MOVE DIRECTION: S, N, E, W, OR H. OR, REQUEST CODE.
C          (S = SOUTH, N = NORTH, E = EAST, W = WEST, H = HERE)
C   COL 2 - SECOND DIRECTION VECTOR FOR NW, NE, SW, OR SE MOVES,
C           ELSE BLANK.
C
C REQUEST CODES:
C
C T: TO TERMINATE THE GAME.
C R: TO REQUEST A RESHOWING OF THE BOARD WITHOUT A MOVE.
C V: TO REQUEST A LISTING OF THE BOARD VECTORS.
C
C*******************************************************************
C
C THE OUTPUT OF THIS PROGRAM CONSISTS OF AN IMAGE OF THE BOARD
C AFTER EACH MOVE.  A MESSAGE IS ALSO SENT AT THE END OF THE GAME
C INDICATING THE OUTCOME OF THE GAME.
C
C*******************************************************************
You can’t perform that action at this time.