+ All Categories
Home > Documents > Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J....

Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J....

Date post: 27-Jun-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
25
Ry¯ o Nim: A Variant of the classical game of Wythoff’s Nim Tomoaki Abuku , Masanori Fukui, Ryohei Miyadera, Yushi Nakaya, Kouki Suetsugu, Yuki Tokuni Graduate School of Pure and Applied Sciences, University of Tsukuba, Japan Games and Graphs Workshop (Lyon, 23–25 October, 2017) Tomoaki Abuku (University of Tsukuba) Ry¯ u¯oNim 23–25th October, 2017 1 / 25
Transcript
Page 1: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Ryuo Nim: A Variant of the classical game of

Wythoff’s Nim

Tomoaki Abuku, Masanori Fukui, Ryohei Miyadera, Yushi Nakaya,Kouki Suetsugu, Yuki Tokuni

Graduate School of Pure and Applied Sciences, University of Tsukuba, Japan

Games and Graphs Workshop(Lyon, 23–25 October, 2017)

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 1 / 25

Page 2: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Contents

1 IntroductionWythoff’s NimRyuo NimThe Grundy value of Ryuo Nim

2 Generalized Ryuo NimRestrict the diagonal movement versionRestrict the diagonal and side movement version

3 3-dimensional Ryuo NimThe rules of 3-dimensional Ryuo NimThe P-positions of 3-dimensional Ryuo Nim

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 2 / 25

Page 3: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Wythoff’s Nim

Wythoff’s Nim is a well-known impartial game with two heaps oftokens. The rules are as follows:

▶ The legal move is to remove any number of tokens from asingle heap (as in Nim) or

▶ remove the same number of tokens from both heaps.

The end position is the state of no tokens in both heaps.Wythoff’s Nim is also called ”Corner the Queen.”

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 3 / 25

Page 4: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Corner the QueenThe rules of the corner the queen are as follows:Each player, when it is his turn to move, can move a Chess queen anarbitrary distance North, West or North-West as indicated by arrows.

Clearly, this game is equivalent to Wythoff’s Nim.

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 4 / 25

Page 5: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Wythoff’s Nim

The Grundy value of Wythoff’s Nim position is not known, but thefollowing theorem is well-known about P-positions of Wythoff’s Nim.

TheoremLet (m, n) (m ≤ n) be a Wythoff’s Nim position.For n −m = k , the P-positions of Wythoff’s Nim are given by

(⌊kΦ⌋, ⌊kΦ⌋+ k), (⌊kΦ⌋+ k , ⌊kΦ⌋),

where Φ is the golden ratio, i.e. Φ = 1+√5

2.

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 5 / 25

Page 6: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Ryuo NimMovement of pieces in Chess

▶ King; can move one by one, vertically, horizontally anddiagonally.

▶ Rook; can move as many steps as you like, vertically andhorizontally.

There are other pieces of chess, but this time I will only considerthese two.

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 6 / 25

Page 7: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Ryuo Nim

Movement of pieces in Shogi (Japanese chess)Shogi is a Japanese board game similar to Chess.In Shogi, the movement of the pieces are almost the same with thatof Chess.

▶ Hisya (”flying chariot”); the movement is exactly the same withthat of Rook.

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 7 / 25

Page 8: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Ryuo NimIn Chess, when a piece called pawn reaches the first row, it isreplaced by a piece of the player’s choice (promotion).In Shogi, some of the pieces turn over and become more powerfulwhen they reach the third row.For example, in the case of a Hisya, it turns over and becomes aRyuo, which is more powerful than a Hisya.

▶ Ryuo (”dragon king”, promoted Hisya); can move both theHisya and the king.

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 8 / 25

Page 9: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Ryuo NimRyuo Nim is equivalent to the game played with a Ryuo instead of aqueen in ”Corner the Queen.” The legal move is to remove anynumber of tokens from a single heap (as in Nim) or remove onetoken from both heaps.

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 9 / 25

Page 10: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

The Grundy value of Ryuo NimGrundy values of Ryuo Nim are examined and they are shown in thefollowing table.

▶ The table of the Grundy value of Ryuo Nim

When you observe them thoroughly, you can see regularity.Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 10 / 25

Page 11: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

The Grundy value of Ryuo Nim

That means it is divided into 3 × 3 blocks.

▶ Table of ((x + y) mod 3)

((x + y) mod 3) is the remainder obtained when x + y is divided by 3.

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 11 / 25

Page 12: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

The Grundy value of Ryuo NimWhen you add this term to the table, we get the table of the Grundyvalue of Ryuo Nim

▶ Table of ((x + y) mod 3) + 3(⌊ x3⌋ ⊕ ⌊ y

3⌋)

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 12 / 25

Page 13: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

The Grundy value of Ryuo Nim

Definition (Grundy value)

Let G be an impartial game position. The Grundy value G(G ) isdefined as

G(G ) = mex{G(G ′) | G ′ ∈ G}.

Therefore, we found that the Grundy value of Ryuo Nim can beexpressed as follows:

TheoremLet (x , y) be a Ryuo Nim position, then we have

G(x , y) = ((x + y) mod 3) + 3(⌊ x3⌋ ⊕ ⌊ y

3⌋).

The Grundy value of Wythoff’s Nim position is not known, but wewere able to obtain the Grundy value of Ryuo Nim position.

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 13 / 25

Page 14: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Generalized Ryuo NimRestrict the diagonal movement by p ∈ Z>1.(The total number of tokens removed from the both heaps at oncemust be less than p.)

p-1

If p = 3, then this game is equivalent to Ryuo Nim.If p = 4, it will be a movement like adding a movement of Knight toRyuo.

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 14 / 25

Page 15: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Restrict the diagonal movement version

The Grundy value of this game position turned out to be as follows:

TheoremLet (x , y) be a Generalized Ryuo Nim position, then we have

G(x , y) = ((x + y) mod p) + p(⌊ xp⌋ ⊕ ⌊ y

p⌋) (p ∈ Z>1).

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 15 / 25

Page 16: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Generalized Ryuo Nim

Restrict the diagonal movement by p ∈ Z>1 and side movement byq ∈ Z>1.(It is possible to take up to a total of p tokens when taking them atonce and up to q tokens when taking them from one heaps.)

q-1

p-1

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 16 / 25

Page 17: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Restrict the diagonal and side movement version

In this case, Grundy value is known only in the following cases:

TheoremIf q ≡ 0 (mod p), then we have

G(x , y) = ((x mod q + y mod q) mod p) +p(⌊ x mod qp

⌋ ⊕ ⌊ y mod qp

⌋)

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 17 / 25

Page 18: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Restrict the diagonal and side movement version

TheoremIf q ≡ 1 (mod p), then we have

(1) x ≡ 0 (mod q), y ≡ 0 (mod q), x = 0, y = 0,

G(x , y) = q

(2) Otherwise

G(x , y) = ((x mod q + y mod q) mod p)+p(⌊ x mod q

p⌋ ⊕ ⌊ y mod q

p⌋)

In other case, it becomes complicated and generally difficult.

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 18 / 25

Page 19: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Restrict the diagonal and side movement versionRestrict the diagonal movement by p ∈ Z>1, the horizontalmovement by q ∈ Z>1 and the vertical movement by r ∈ Z>1.

TheoremIf q ≡ 0 (mod p) and r ≡ 0 (mod p), then we have

G(x , y) = ((x mod q + y mod r) mod p) +p(⌊ x mod qp

⌋ ⊕ ⌊ y mod rp

⌋)

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 19 / 25

Page 20: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

3-dimensional Ryuo Nim

3-dimensional Ryuo Nim is an impartial game with three heaps oftokens. The rules are as follows:

▶ The legal move is to remove any number of tokens from asingle heap (as in Nim) or

▶ remove one token from any two heaps or

▶ remove one token from all the three heaps.

The end position is the state of no tokens in the three heaps.

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 20 / 25

Page 21: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

The P-positions of 3-dimensional Ryuo Nim

We could not get the indication of Grundy value for 3-dimensionalRyuo Nim but we get the P-positions as shown in this theorem.

TheoremLet (x , y , z) be a 3-dimensional Ryuo Nim position.The P-positions of 3-dimensional Ryuo Nim are given as follows:(x + y + z) ≡ 0 (mod 3), and moreover

(A) If x ≡ y ≡ z ≡ 1 (mod 3), then

⌊ x3⌋ ⊕ ⌊ y

3⌋ ⊕ ⌊ z

3⌋ ⊕ 1 = 0

(B) Otherwise

⌊ x3⌋ ⊕ ⌊ y

3⌋ ⊕ ⌊ z

3⌋ = 0.

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 21 / 25

Page 22: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

3-dimensional Ryuo Nim

・Let’s change the rule of 3-dimensional Ryuo Nim as follows:(We will eliminate the rule of taking tokens one by one from thethree heaps.)3-dimensional Ryuo Nim is an impartial game with three heaps oftokens. The rules are as follows:

▶ The legal move is to remove any number of tokens from asingle heap (as in Nim) or

▶ remove one token from any two heaps or

▶ remove one token from all the three heaps.

The end position is the state of no tokens in the three heaps.

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 22 / 25

Page 23: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

The Grundy value of 3-dimensional Ryuo NimThen, we can obtain the Grundy value of this game as follows:

TheoremLet (x , y , z) be a 3-dimensional Ryuo Nim position, then we have

G(x , y , z) = ((x + y + z) mod 3) + 3(⌊ x3⌋ ⊕ ⌊ y

3⌋ ⊕ ⌊ z

3⌋).

We considered that this could be expanded and made the followingconjecture:

Conjecture

Let (x1, . . . , xn) be a n-dimensional Ryuo Nim position, then we have

G(x1, . . . , xn) = ((x1 + · · ·+ xn) mod 3) + 3(⌊ x13⌋ ⊕ · · · ⊕ ⌊ xn

3⌋).

In the near future, We’d like to consider whether or not it will beexpanded.

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 23 / 25

Page 24: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

References

▶ Wythoff, W. A ., A Modication of the Game of Nim, NieuwArch, Wisk. 8, 1907/1909.

▶ J. H. Conway, On Numbers And Games (second edition),A. K.Peters, 2001.

▶ E. R. Berlekamp, J. H. Conway, R. K. Guy, Winning Ways forYour Mathematical Plays,Vols. 1–4, A. K. Peters, 2001–2004.

▶ Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessonsin Play, An Introduction to Combinatorial Game Theory, A. K.Peters 2007.

▶ A. N. Siegel, Combinatorial Game Theory, AmericanMathematical Society, 2013.

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 24 / 25

Page 25: Ryuo Nim: A Variant of the classical game of Wythoff's Nim · Michael H. Albert, Richard J. Nowakowski, David Wolfe, Lessons in Play, An Introduction to Combinatorial Game Theory,

Thank you!

Tomoaki Abuku (University of Tsukuba) Ryuo Nim 23–25th October, 2017 25 / 25


Recommended