Exemplo n.º 1
0
    public void Mirror(ref Situation mirrorSituation)
    {
        mirrorSituation.ClearBoard();

        int pc = 0;

        for (int sq = 0; sq < 256; sq++)
        {
            pc = currentBoard[sq];
            if (pc != 0)
            {
                mirrorSituation.AddPiece(logic.MirrorSqure(sq), pc);
            }
        }

        if (sdPlayer == 1)
        {
            mirrorSituation.ChangeSide();
        }
        mirrorSituation.SetIrrev();
    }