tests/testthat/_snaps/ppn.md

parsing ppn files works as expected

Code
  cat(game_name, "\n")
Output
  alien-city 
Code
  cat_move(game_var, ...)
Output
   ┌───┬───┬───┬───┐
   │♛  │☀  │   │⸸⃝ ⸸│
   │ 3 │ a │ 5 │ a │
   │♛⃝  │☀⃝  │☀⃝ ☀│  ⸸⃝│
   ├───┼───┼───┼───┤
   │  ☾│☀⃝ ☀│■⃨ □̣│⸸  │
   │ 4 │ 4 │ 3 │ 4 │
   │  ■⃨│☀⃝  │☾ ☾⃝│⸸⃝  │
   ├───┼───┼───┼───┤
   │  ♛⃝│■⃨ ☾│■̣ ☾⃝│   │
   │ 2 │ a │ 5 │ 3 │
   │  ♛│☾⃝ ☾⃝│■̣ □̣│  ⸸│
   ├───┼───┼───┼───┤
   │☾⃝  │☀  │  ♛⃝│■̣ ■⃨│
   │ a │ 2 │ 5 │ 4 │
   │♛  │  ☾⃝│♛⃝ ■⃨│♛⃝ ♛⃝│
   ├───┼───┼───┼───┤
   │⸸⃝ ⸸⃝│  ■⃨│⸸  │   │
   │ 5 │ 2 │ 2 │ 3 │
   │⸸ ■⃨│☾  │  □̣│☀⃝ ■⃨│
   └───┴───┴───┴───┘
Code
  cat(game_name, "\n")
Output
  checkers 
Code
  cat_move(game_var, ...)
Output
   ┌─┰─┬─┰─┬─┰─┬─┰─┐
   │ ┃ │ ┃ │ ┃ │ ┃☽⃝│
   ┝━╋━┿━╋━┿━╋━┿━╋━┥
   │☀⃝┃ │ ┃ │ ┃ │ ┃ │
   ├─╂─┼─╂─┼─╂─┼─╂─┤
   │ ┃ │ ┃ │ ┃ │ ┃ │
   ┝━╋━┿━╋━┿━╋━┿━╋━┥
   │ ┃ │ ┃ │ ┃ │ ┃ │
   ├─╂─┼─╂─┼─╂─┼─╂─┤
   │ ┃ │ ┃ │ ┃ │ ┃ │
   ┝━╋━┿━╋━┿━╋━┿━╋━┥
   │ ┃ │ ┃ │ ┃ │ ┃ │
   ├─╂─┼─╂─┼─╂─┼─╂─┤
   │ ┃ │ ┃ │ ┃ │ ┃ │
   ┝━╋━┿━╋━┿━╋━┿━╋━┥
   │ ┃ │ ┃ │ ┃ │ ┃ │
   └─┸─┴─┸─┴─┸─┴─┸─┘
Code
  cat(game_name, "\n")
Output
  desfases 
Code
  cat_move(game_var, ...)
Output

                2⃞   5⃝   3⃝   a⃝

      ┌───┐ ┌───┐ ┌───┐ ┌───┐ ┌───┐   
      │  ☾│ │   │ │   │ │   │ │☀  │   
      │ a │ │ 3 │ │ 2 │ │ 2 │ │ ♛⃝ │   
      │   │ │  ⸸│ │⸸  │ │  ♛│ │   │   
    n⃝ └───┘ └───┘ └───┘ └───┘ └───┘

      ┌───┐ ┌───┐ ┌───┐ ┌───┐ ┌───┐   
      │   │ │  ☾│ │   │ │  ♛│ │   │   
      │ ♛⃟ │ │ n │ │ 4 │ │ n │ │ 5 │   
      │  ☀│ │   │ │  ♛│ │   │ │  ☾│   
      └───┘ └───┘ └───┘ └───┘ └───┘ n⃞

    4⃝ ┌───┐ ┌───┐       ┌───┐ ┌───┐   
      │⸸  │ │  ☀│       │♛  │ │☾  │   
    5⃝ │ ☾⃟ │ │ ☾⃝ │   ♛⃝   │ ⸸⃝ │ │ ⸸⃝ │ 5⃝ 
      │   │ │   │       │   │ │   │   
      └───┘ └───┘       └───┘ └───┘ 4⃝

    2⃞ ┌───┐ ┌───┐ ┌───┐ ┌───┐ ┌───┐   
      │   │ │   │ │  ♛│ │  ⸸│ │♛  │   
      │ ☀⃝ │ │ ☀⃟ │ │ ☀⃝ │ │ a │ │ ⸸⃟ │   
      │☾  │ │⸸  │ │   │ │   │ │   │   
      └───┘ └───┘ └───┘ └───┘ └───┘ a⃝

      ┌───┐ ┌───┐ ┌───┐ ┌───┐ ┌───┐ n⃝ 
      │   │ │☀  │ │   │ │  ☾│ │   │   
      │ 4 │ │ a │ │ n │ │ 2 │ │ n │   
      │  ☀│ │   │ │☀  │ │   │ │  ⸸│   
      └───┘ └───┘ └───┘ └───┘ └───┘

              2⃝ 3⃝   5⃝   a⃞
Code
  cat(game_name, "\n")
Output
  four-field-kono 
Code
  cat_move(game_var, ...)
Output
   ┌─┰─┬─┰─┐
  4│⸸⃝┃ │ ┃ │
   ┝━╋━┿━╋━┥
  3│ ┃ │☽⃝┃☽⃝│
   ├─╂─┼─╂─┤
  2│ ┃ │☀⃝┃☀⃝│
   ┝━╋━┿━╋━┥
  1│ ┃ │ ┃☀⃝│
   └─┸─┴─┸─┘
    a b c d
Code
  cat(game_name, "\n")
Output
  ice-floe 
Code
  cat_move(game_var, ...)
Output

             ☀⃟ 3⃞ ♛⃝         
    ┌───┐           ┌───┐  
    │☀  │           │☾  │  
    │ 2 │           │ 3 │  
    │  ■⃨│           │  ■̤│  
    └───┘           └───┘


   ☾⃝                       
    ┌───┬───┬───┐          
   3⃞│☾  │♛  │☾  │        ☾⃟ 
    │ n │ n │ a │          
   ⸸⃟│   │   │  ■̤│        3⃞ 
    └───┼───┼───┘          
        │⸸  │            ♛⃝ 
        │ 3 │              
        │   │              
    ┌───┼───┼───┬───┬───┐  
    │⸸  │⸸  │☀  │♛  │♛  │  
    │ 4 │ 5 │ a │ 4 │ 5 │  
    │   │   │   │   │  ■̣│  
    └───┴───┴───┴───┴───┘  
           ⸸⃝ 2⃞ ♛⃟
Code
  cat(game_name, "\n")
Output
  chess 
Code
  cat_move(game_var, ...)
Output
   ┌─┰─┬─┰─┬─┰─┬─┰─┐
   │↋⃞┃ │☀⃟┃ↅ̲⃝│ ┃ │ ┃↋⃞│
   ┝━╋━┿━╋━┿━╋━┿━╋━┥
   │☀⃝┃ │ ┃☽⃝│⸸⃟┃☽⃝│a⃝┃☽⃝│
   ├─╂─┼─╂─┼─╂─┼─╂─┤
   │ɐ⃝┃ │ ┃ │ ┃ɐ⃝│ ┃ │
   ┝━╋━┿━╋━┿━╋━┿━╋━┥
   │ ┃☀⃝│ ┃a⃝│⸸⃝┃ │ ┃♛⃝│
   ├─╂─┼─╂─┼─╂─┼─╂─┤
   │ ┃ │ ┃ │ ┃ │⸸⃝┃ │
   ┝━╋━┿━╋━┿━╋━┿━╋━┥
   │ ┃ │ ┃♛⃝│ ┃ │ ┃ │
   ├─╂─┼─╂─┼─╂─┼─╂─┤
   │⸸⃝┃ │⸸⃝┃ │5⃝┃ │ ┃ │
   ┝━╋━┿━╋━┿━╋━┿━╋━┥
   │ᔭ⃝┃ │ ┃ │ ┃ │☽⃟┃ │
   └─┸─┴─┸─┴─┸─┴─┸─┘
Code
  cat(game_name, "\n")
Output
  japan 
Code
  cat_move(game_var, ...)
Output
        ┌───┐   ┌───┐   ┌─┬─┐      
        │ ┃ │   │…⃛┃…⃛│   │⠌│ │      
    ┌─┰─┼─┬─┼───┼─┰─┼─┬─┤━├─┴─┬─┐  
   a⃝│ ┃ │ │⠿│…⃛┃…⃛│ ┃ │⠿│ │·│⠡┃ │ │a⃝ 
    ├─┸─┼─┤━├─┬─┴─╀─┤━┝━┽─┼─┬─┴─┤  
   5⃝│⠡┃…⃛│ │∷│ │…⃛┃⁙│⠿│∷│ │⁙│ │·┃⋱│5⃝ 
    ├─┬─┴─┼─┼─┼─┬─┤━├─┼─┤━├─┼─┰─┤  
   4⃝│ │∷┃∷│ │⸸⃟│⠿│⠿│ │ │⋰│⁙│·│ ┃ │4⃝ 
    ┝━╅─┬─┴─┾━┥━│━├─┴─┤━├─┤━┝━╋━┥  
   3⃝│ ┃ │·┃⋱│ │⋰│⁙│ ┃ │⋰│ │⁙│ ┃ │3⃝ 
    ├─╀─┴─┬─┼─┼─┼─╁─┬─┼─┴─┼─┼─╀─┤  
   2⃝│⠿│·┃⁙│3⃞│ │ │ ┃ │ │…⃛┃⋱│ │ │⁙│2⃝ 
    │━├─┬─┼─┤━┝━┽─┸─┼─┴─┬─┼─┤━│━│  
   n⃝│·│ │·│ │⠌│ │⁙┃⠡│…⃛┃⠡│☀⃟│⠌│·│∷│n⃝ 
    └─┴─┤━┝━┽─┴─┼─┰─┼───┾━┥━├─┴─┘  
        │·│n⃞│   │ ┃ │   │ │∷│      
        └─┴─┘   └─┸─┘   └─┴─┘
Code
  cat(game_name, "\n")
Output
  plans-of-action 
Code
  cat_move(game_var, ...)
Output
   ┌─┰─┬─┰─┬─┰─┬─┰─┐
   │ ┃ │ ┃ │ ┃ │ ┃ │
   ┝━╋━┿━╋━┿━╋━┿━╋━┥
   │ ┃ │ ┃ │ ┃ │ ┃ │
   ├─╂─┼─╂─┼─╂─┼─╂─┤
   │ ┃ │⸸⃝┃⸸⃝│⸸⃝┃⸸⃝│⸸⃝┃⸸⃝│
   ┝━╋━┿━╋━┿━╋━┿━╋━┥
   │ ┃ │ ┃ │ ┃ │ ┃ │
   ├─╂─┼─╂─┼─╂─┼─╂─┤
   │ ┃ │ ┃ │ ┃ │ ┃ │
   ┝━╋━┿━╋━┿━╋━┿━╋━┥
   │ ┃☀⃝│☀⃝┃☀⃝│☀⃝┃☀⃝│☀⃝┃ │
   ├─╂─┼─╂─┼─╂─┼─╂─┤
   │♛⃝┃♛⃝│♛⃝┃♛⃝│♛⃝┃♛⃝│ ┃ │
   ┝━╋━┿━╋━┿━╋━┿━╋━┥
   │ ┃☾⃝│☾⃝┃☾⃝│☾⃝┃☾⃝│☾⃝┃ │
   └─┸─┴─┸─┴─┸─┴─┸─┘
Code
  cat(game_name, "\n")
Output
  relativity 
Code
  cat_move(game_var, ...)
Output
    ┌───┐ ┌───┐ 
    │☾  │ │☾  │ 
    │ n │ │ a │ 
    │   │ │   │ 
    └───┘ └───┘ 
   ┌─┰─┬─┰─┬─┰─┐
   │n⃝┃4⃝│4⃝┃5⃝│5⃝┃5⃝│
   ┝━╋━┿━╋━┿━╋━┥
   │n⃝┃2⃝│3⃝┃3⃝│3⃝┃4⃝│
   ├─╂─┼─╂─┼─╂─┤
   │n⃝┃4⃝│2⃝┃a⃝│a⃝┃a⃝│
   ┝━╋━┿━╋━┿━╋━┥
   │n⃝┃2⃝│2⃝┃3⃝│a⃝┃5⃝│
   └─┸─┴─┸─┴─┸─┘
Code
  cat(game_name, "\n")
Output
  tic-tac-toe 
Code
  cat_move(game_var, ...)
Output

    ☾⃝─┰─☾⃝ 
    │ ┃ │ 
    ☾⃝━☀⃝━┥ 
    │ ┃ │ 
    ☀⃝─☀⃝─☀⃝
Code
  cat(game_name, "\n")
Output
  xiangqi 
Code
  cat_move(game_var, ...)
Output

    ⸸⃟─┰─┬─a⃝───ᔭ⃝─┬─☽⃟─┐ 
    │ ┃ │ │   │ │ ┃ │ 
    ┝━3⃞━┿━┥ ↅ̲⃝ ┝━┿━╋━┥ 
    │ ┃ │ │  ☀│ │ ┃ │ 
    ├─╂─┼─╁─↊⃝─╁─ɐ⃝─╂─┤ 
    │ ┃ │ ┃ │ ┃ │ ┃ │ 
    ☀⃝━╋━┿━╋━☀⃝━╋━┿━╋━☀⃝ 
    │ ┃ │ ┃ │ ┃ │ ┃ │ 
    └─┸─┴─┸─┴─ɐ⃝─┴─┸─┘

    ┌─┰─⸸⃝─┰─┬─┰─┬─┰─┐ 
    │ ┃ │ ┃ │ ┃ │ ┃ │ 
    ♛⃝━╋━┿━╋━☀⃟━╋━┿━╋━♛⃝ 
    │ ┃ │ ┃ │ ┃ │ ┃ │ 
    ├─╂─┼─╀─2⃝─╀─┼─╂─┤ 
    │ ┃ │ │♛  │ │ ┃ │ 
    ┝━╋━┿━┥ 4⃝ ┝━┿━╋━┥ 
    │ ┃ │ │   │ │ ┃ │ 
    └─┸─2⃝─4⃝─5⃝─┴─┴─┸─┘


piecepackr/ppgames documentation built on Jan. 17, 2025, 2:24 p.m.