Categories > Board > rex_miniboard_rotate

Introduction

A behavior of mini board, which spin chess on mini board logically and physically.

Links


Categories > Board > rex_miniboard_rotateIntroductionLinksDependenceUsageTransferCan transferInitial direction

Dependence

Usage

Transfer on main board Putable testing RecoverYesYesNoNoPull out chessfrom main boardTransfer LXYZ(rotate, mirror, flip)of all chessMap chess LXYZto main boardAll chessare putablePut chesson main boardRecover LXYZof all chessPut chesson main boardPutable testing----- None, always true- Cell is empty- Condition:On put-able request----For each chessAction:Rotate, orAction:Face, orAction:Flip, orAction:MirrorRecover =Is on main board+Condition:On rotating accepted, or+Condition:On flipping accepted, or+Condition:On mirroring accepted+Condition:On rotating rejected+Condition:On flipping rejected+Condition:On mirroring rejectedTransfer LXYZ(rotate, mirror, flip)of all chess

Transfer

Sample capx

  1. Action:Rotate, Action:Face, Action:Mirror, or Action:Flip

    • Action:Rotate, to rotate the chess in the mini board.
    • Action:Face, to make the mini board face to specific direction.
    • Action:Flip, to toggle the sign of logic Y for each chess.
    • Action:Mirror, to toggle the sign of logic X for each chess.
  2. If this min board is on main board already

    • On main board

      1. Save position of chess, Set Recover = true

      2. Pull out from this main board

      3. Transfer LXYZ of all chess

      4. Run put-able testing of all chess

        • Put-able, all test results are true

          1. Put chess to main board
          2. Trigger Condition:On putting accepted
        • Not Put-able, any test result are false

          1. If Recover = true

            1. Recover position of chess
            2. Put chess to main board
          2. Trigger Condition:On putting rejected

    • Not on any main board

      1. Rotate LXYZ of all chess
      2. Trigger Condition:On putting accepted

Set property RotateTo to Yes to change physical position of chess to its logical position.

Can transfer

They won't change the logical and physical position.

Initial direction

Set property Direction to assign initial direction of this mini board for Action:Rotate.