Computer

by barron

Points

7

Type

Custom

Please log in to purchase pieces.

computer

7 points

A strategic mastermind that can calculate moves and adapt to the board state.

Moves

  • This piece
  • Can move
  • Can capture
  • Other piece
  • Step

    Moves 1 square in any direction.

  • Teleport

    Moves to any square on the board.

  • Teleport

    Moves to any square on the board, only to capture a friendly piece. Swaps places with any friendly piece anywhere on the board.

Abilities

  • Analyze
    • Once per game

    Analyzes the board and swaps positions with any friendly piece.

Show rules as code

Step

(relative :origin from :offsets ((1 0) (-1 0) (0 1) (0 -1) (1 1) (1 -1) (-1 1) (-1 -1)))

Teleport

(relative :origin from :offsets board_wide_target)

Teleport

(where (relative :origin from :offsets board_wide_target) (piece.color friendly))
then {"kind":"swap","params":{"select":"(where board_wide_target (piece.color friendly))"}}

Analyze

if {"kind":"max_uses","params":{"key":"analyze_uses","limit":1}}
then {"kind":"set_target_field","params":{"field":"last_pos","select":"(where board_wide_target (piece.color friendly))","value_source":"activator_color"}}

State

{"analyze_uses":0,"calculate_uses":0,"has_moved":false,"last_pos":null,"swap_uses":0}