Data update
This commit is contained in:
parent
8e4e15fa56
commit
72eb4943cb
1853 changed files with 35514 additions and 9441 deletions
|
|
@ -5,4 +5,4 @@ move=. pos ($:@][echo@'no')`(-@turn@], turn@]`[`(board@])})@.open ]
|
|||
outcome=. 'tie'"_`(' wins',~ {&'.XO'@-@turn)@.won
|
||||
show=. [ ''echo@, '',~ (,' '&,)/"1@({&'.XO')@(3 3$board)
|
||||
won=. [: +./ 3 = [: | +/"1@(],|:,(<@0 1|:]),:<@0 1|:|.)@(3 3$board)
|
||||
ttt=: [: outcome [: [F.(show@move[_2:Z:won+.full) 10&{.@_1
|
||||
ttt=: [: outcome [: show@move^:(won-.@+.full)^:_. (10&{.@_1)
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Until=. {{[F.(u[_2:Z:v)}} NB. apply u until condition v is true
|
||||
Until=. {{u^:(-.@v)^:_.}} NB. apply u until condition v is true
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
{{u^:(-.@:v)^:_}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue