diff --git a/docs/demos.json b/docs/demos.json index f6944c7..220c730 100644 --- a/docs/demos.json +++ b/docs/demos.json @@ -240,7 +240,7 @@ { "name": "猜数游戏", "irUrl": "demos/games/guess_game.ir", - "remark": "程序在[0,32768)内随机生成一个数字,请你来猜!猜小了会输出-1,猜大了会输出1。猜对了会输出什么?" + "remark": "程序在(-32768,32768)内随机生成一个数字,请你来猜!猜小了会输出-1,猜大了会输出1。猜对了会输出什么?" } ] }, diff --git a/docs/demos/games/guess_game.cmm b/docs/demos/games/guess_game.cmm index a9cd578..ef2e45d 100644 --- a/docs/demos/games/guess_game.cmm +++ b/docs/demos/games/guess_game.cmm @@ -1,5 +1,5 @@ /* - * This program generates a secret random integer x in [0,32768). + * This program generates a secret random integer x in (-32768,32768). * Then you guess the number. If your entered value is less than x, you'll see -1. * Or if it's greater than x, you'll see 1. If you guess right, 666 will be written. */ diff --git a/public/demos.json b/public/demos.json index f6944c7..220c730 100644 --- a/public/demos.json +++ b/public/demos.json @@ -240,7 +240,7 @@ { "name": "猜数游戏", "irUrl": "demos/games/guess_game.ir", - "remark": "程序在[0,32768)内随机生成一个数字,请你来猜!猜小了会输出-1,猜大了会输出1。猜对了会输出什么?" + "remark": "程序在(-32768,32768)内随机生成一个数字,请你来猜!猜小了会输出-1,猜大了会输出1。猜对了会输出什么?" } ] }, diff --git a/public/demos/games/guess_game.cmm b/public/demos/games/guess_game.cmm index a9cd578..ef2e45d 100644 --- a/public/demos/games/guess_game.cmm +++ b/public/demos/games/guess_game.cmm @@ -1,5 +1,5 @@ /* - * This program generates a secret random integer x in [0,32768). + * This program generates a secret random integer x in (-32768,32768). * Then you guess the number. If your entered value is less than x, you'll see -1. * Or if it's greater than x, you'll see 1. If you guess right, 666 will be written. */