! robotfindskitten
! A Zen Simulation
-! Release 7 / Serial number 130320 / Inform v6.33
+! Release 8 / Serial number 220120 / Inform v6.35
!
! [-] |\_/| http://www.robotfindskitten.org
! (+)=C |o o|__ Leonard Richardson (C) 1997, 2000
-! | | --*--__\ David Griffith (C) 2002-2013 (Inform Edition)
+! | | --*--__\ David Griffith (C) 2002-2022 (Inform Edition)
! OOO C_C(____)
!
!
! Lots more information on robotfindskitten is available at
! http://www.robotfindskitten.org.
!
+! This rendition of robotfindskitten is distributed under the Artistic
+! License 2.0. See the file LICENSE in the robotfindskitten repository
+! or https://opensource.org/licenses/Artistic-2.0 for more information.
!
! In this game, you are Robot (#). Your job is to find Kitten. This
! task is complicated by the existance of various things which are not
! not. Move Robot with the cursor keys, the numeric keypad, or
! using the vi/rogue movement keys. The game ends when robotfindskitten.
! Alternatively, you may end the game by hitting the Esc or Q keys.
-!
!
! Notes:
! 1) More than half of the code is taken up by non kitten items
!
Constant Nonkitten_Max 589;
-Release 7;
-Serial "130320";
+Release 8;
+Serial "220120";
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@set_cursor 8 30;
print "Leonard Richardson (C) 1997, 2000";
@set_cursor 9 30;
- print "David Griffith (C) 2002-2013 (Inform Edition)";
+ print "David Griffith (C) 2002-2022 (Inform Edition)";
@set_cursor 10 30;
print " ", MESSAGE_NUM, " different nonkittens!";
Written originally for the Nerth Pork robotfindskitten contest.^
Reimplemented in Inform by David Griffith (C) 2002.^
^
-This code is freely redistributable. Do with it what you will, but
-don't go about claiming you wrote it. I, David Griffith, retain
-copyright on this program except for the NKIs imported from the master
-(aka POSIX) port.^
+This code is distributed according to the Artistic License 2.0. See
+https://opensource.org/licenses/Artistic-2.0 for more information. I,
+David Griffith, retain copyright on this program except for the NKIs
+imported from the master (aka POSIX) port.^
^
Lots more information on robotfindskitten is available at
http://www.robotfindskitten.org.^
- NKIs now generated from an external file using nki2inf.pl.^
- NKIs reduced to 723 because of redundancies and recommended deletions.^
^
+Release 8 / Serial Number 220120^
+- Twenty Year Anniversary release.^
+- Fixed a problem that crashed some interpreters when robotfindskitten.^
+- Fixed a potential problem of wrongly determining screen size.^
+- Now distributed under the Artistic License 2.0.^
+^
^
Known Bugs:^
^
if (anim_finished == false) {
j = TopBar - 1;
@set_cursor 1 Width;
- @aread junk 0 10 pause -> junk;
+ @read_char 1 10 pause -> junk;
+ @nop; ! This is for padding.
} else {
style reverse;
draw_object(player_x, player_y, '#');
[ get_random_msg num;
num = random(MESSAGE_NUM);
- while (is_duplicate_msg(num) == true) {
+ while (is_duplicate_msg(num) == true || num > MESSAGE_NUM || num < 1) {
num = random(MESSAGE_NUM);
}
return num;