-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98ca3c6
commit 74e987c
Showing
9 changed files
with
197 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
// Step 1 in the tutorial for writing Amazons in .lud format from scratch | ||
// | ||
// This file is actually just loaded as Tic-Tac-Toe, except that it will | ||
// be named "Amazons". | ||
// This is a minimal legal game description, with some basic equipment, | ||
// playing rules, and ending rules. | ||
|
||
(game "Amazons") | ||
(game "Amazons" | ||
(players 2) | ||
(equipment | ||
{ | ||
(board (square 10)) | ||
} | ||
) | ||
(rules | ||
(play | ||
(forEach Piece) | ||
) | ||
|
||
(end | ||
(if | ||
(no Moves Next) | ||
(result Mover Win) | ||
) | ||
) | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
// Step 2 in the tutorial for writing Amazons in .lud format from scratch | ||
// | ||
// This file loads a game with a 10x10 board, but otherwise still the rules | ||
// of Tic-Tac-Toe since we did not specify any other rules. | ||
// In this step we specify the piece types used to play Amazons. | ||
|
||
(game "Amazons" | ||
(players 2) | ||
(equipment | ||
{ | ||
(board (square 10)) | ||
(game "Amazons" | ||
(players 2) | ||
(equipment | ||
{ | ||
(board (square 10)) | ||
(piece "Queen" Each) | ||
(piece "Dot" Neutral) | ||
} | ||
) | ||
(rules | ||
(play | ||
(forEach Piece) | ||
) | ||
|
||
(end | ||
(if | ||
(no Moves Next) | ||
(result Mover Win) | ||
) | ||
) | ||
) | ||
) |
Oops, something went wrong.