Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Preloaded Examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Monterey Phoenix
MP Model Collection
Preloaded Examples
Commits
93f33eb1
Commit
93f33eb1
authored
2 years ago
by
Pamela Dyer
Browse files
Options
Downloads
Plain Diff
Merge branch 'Pamela_Branch_4' into 'Pamela_Branch_5'
Update Tic_Tac_Toe.mp See merge request
!61
parents
dbc9bf49
e9ea9e03
Branches
Pamela_Branch_5
Branches containing commit
No related tags found
2 merge requests
!62
Pamela's Merge Request: 05-23-2022
,
!61
Update Tic_Tac_Toe.mp
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/Application_examples/Tic_Tac_Toe.mp
+25
-16
25 additions, 16 deletions
models/Application_examples/Tic_Tac_Toe.mp
with
25 additions
and
16 deletions
models/Application_examples/Tic_Tac_Toe.mp
+
25
−
16
View file @
93f33eb1
...
...
@@ -5,7 +5,16 @@
│*│ │ Modified by Michael Collins and Pamela Dyer │ │
│*│ │ in January through May, 2022. │ │
│*│ │ | |
│*│ │ Thanks to Emma Werking for her contributions. │ │
│*│ │ Many thanks to Emma Werking for providing the │ │
│*│ │ technical foundations of this effort. │ │
│*│ │ Many thanks to Kristin Giammarco for her insight │ │
│*│ │ and recommendations. │ │
│*│ │ Many thanks to Michelle Morneau at the NPS │ │
│*│ │ Graduate Writing Center for providing the │ │
│*│ │ translation from our modeling dialects. This │ │
│*│ │ helped with better communicating the project, │ │
│*│ │ while also ensuring that the required technical│ │
│*│ │ precision was still maintained. │ │
│*│ └────────────────────────────────────────────────────┘ │
│*│ │
│*│ ┌─[ Purpose ]────────────────────────────────────────┐ │
...
...
@@ -46,7 +55,7 @@
│*│ └────────────────────────────────────────────────────┘ │
│*│ │
│*│ ┌─[ Search Terms ]───────────────────────────────────┐ │
│*│ │ tic-tac-toe
,
behavior
;
strategy; assertion checking│ │
│*│ │ tic-tac-toe
;
behavior
,
strategy; assertion checking│ │
│*│ └────────────────────────────────────────────────────┘ │
│*│ │
│*│ ┌─[ Instructions ]───────────────────────────────────┐ │
...
...
@@ -105,13 +114,13 @@ choosing_remnant_NOT_beside_an_X_on_2nd_move :
/* Player going second makes mistake on second move of the game */
choosing_a_corner_on_2nd_move :
/* first move */
X_chooses_corner
/* first move */
X_chooses_corner
/* second move - mistake */ O_chooses_corner
/* third move */
X_chooses_any_corner
/* fourth move */
O_blocks_
/* fifth move */
X_chooses_last_corner
/* sixth move */
O_blocks_one_path
/* seventh move */
X_wins;
/* third move */
X_chooses_any_corner
/* fourth move */
O_blocks_
/* fifth move */
X_chooses_last_corner
/* sixth move */
O_blocks_one_path
/* seventh move */
X_wins;
/* Player going second makes mistake on fourth move of the game */
...
...
@@ -122,7 +131,7 @@ choosing_center_on_2nd_Move_and_any_corner_on_4th_move :
/* fourth move - mistake */ O_chooses_any_corner
/* fifth move */ X_blocks
/* sixth move */ O_blocks
/* seventh move */
X_wins;
/* seventh move */
X_wins;
/* No mistakes made by either player */
...
...
@@ -175,19 +184,19 @@ DO
OD;
COORDINATE $second_move:
(
O_chooses_remnant_next_to_X_on_first_turn |
O_chooses_remnant_NOT_beside_an_X_on_first_turn |
O_chooses_corner
|
O_chooses_center
O_chooses_remnant_next_to_X_on_first_turn |
O_chooses_remnant_NOT_beside_an_X_on_first_turn |
O_chooses_corner
|
O_chooses_center
)
DO
ADD SAY("SECOND MOVE OF THE GAME.") PRECEDES $second_move;
OD;
COORDINATE $third_move:
(
X_chooses_center |
X_chooses_any_corner |
X_chooses_corner_opposite_previous_X
X_chooses_center |
X_chooses_any_corner |
X_chooses_corner_opposite_previous_X
)
DO
ADD SAY("THIRD MOVE OF THE GAME.") PRECEDES $third_move;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment