From 5c82e8b0f03b4e5b2b7b57588bb966db817e466e Mon Sep 17 00:00:00 2001 From: Ernest Cui Date: Sat, 23 Mar 2024 20:33:52 +0800 Subject: [PATCH] chore: update guess game random number range desc --- docs/demos.json | 2 +- docs/demos/games/guess_game.cmm | 2 +- public/demos.json | 2 +- public/demos/games/guess_game.cmm | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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. */