📜  如何使它成为另一个玩家的回合java代码示例

📅  最后修改于: 2022-03-11 14:52:05.098000             🧑  作者: Mango

代码示例3
dirX    dirY    Why?
                           ----    ----    --------------------------------
     horizontal direction    1       0       Only x changes.
     vertical direction      0       1       Only y changes.
     first diagonal          1       1       Both x and y change.
     second diagonal         1      -1       Change in opposing directions.