static void EdgeWrap()

in localized/ja/11-Other/GameOfLife/Program.cs [51:57]


        static void EdgeWrap(ref int x, ref int y)
        {
            if (x < 0) x += WIDTH;
            else if (x > WIDTH - 1) x -= WIDTH;
            if (y < 0) y += HEIGHT;
            else if (y > HEIGHT - 1) y -= HEIGHT;
        }