Автор: Arthur Douglass
Год: 1984
Языки:
Требования:
Ссылки:
Скриншоты:
Описание:
Nim— это классическая настольная игра, реализованная для Sinclair QL Артуром Дугласом. Игра представляет собой стратегическое испытание, где игроки по очереди убирают блоки из одной из пяти строк, отображаемых на экране. Основная цель — стать игроком, который уберет последний блок, и таким образом выиграть игру.
Игра написана на языке SuperBasic и состоит из двух отдельных листингов. Первый листинг сохраняется какmdv1_BOOT, а второй — какmdv1_NIM. Эти листинги включают простые процедуры, такие как центрирование текста на экране и приостановка игры до нажатия клавиши ENTER, что может быть полезно для начинающих программистов.
Интересной особенностью этой версии Nim является использование специальных сокращений для графических символов. Игрокам рекомендуется внимательно прочитать инструкции перед вводом программы, чтобы полностью понять эти уникальные элементы. Эта версия переворачивает традиционное правило, где игрок, взявший последний блок, обычно проигрывает, делая её уникальным вариантом классической игры.
Игра была изначально напечатана Джимом Уотерманом в апреле 2020 года, что обеспечивает сохранение кода для современной эмуляции. Эта адаптация позволяет энтузиастам исследовать игру на эмуляторе QLAY, привнося часть истории ретро-игр в современную эпоху.
NIM (QL)
SU8412w033115Nim.mdv
===============================================================================
NOTE: The microdrive cartridge is in a format readable by the QLAY emulator.
Files on the cartridge:
BOOT (SuperBasic)
NIM (SuperBasic)
===============================================================================
OUR FIRST game for the QL is that old favourite Nim, programmed by Arthur Douglass of London. The QL displays five rows of blocks, and you may take any number of blocks from a single row. The winner is the player who takes the last block.
The program is in two listings. Listing One should be saved using: save mdv1_BOOT and Listing Two should be saved using: save mdv1_NIM. Nim uses several simple procedures which may be of use to novice programmers, including one to centre text on the screen and another to halt the program until ENTER is pressed.
The program uses our special abbreviations for graphics characters, so please read the instructions on this page before entering the program.
NOTE: from all the other Nim listings I've had to type in, surely the player who takes the last block is the one who loses...? Still, it looks like in this listing, it's the other way round. Talking of losses, even with ONE DAY'S EXPERIENCE of QL SuperBasic I can see there were #s missing in the FLASH, BORDER, PRINT and AT statement in lines 220, 640 and 650.
====================================================
Text and programs typed by Jim Waterman, April 2020.
====================================================
SU8412w033115Nim.mdv
===============================================================================
NOTE: The microdrive cartridge is in a format readable by the QLAY emulator.
Files on the cartridge:
BOOT (SuperBasic)
NIM (SuperBasic)
===============================================================================
OUR FIRST game for the QL is that old favourite Nim, programmed by Arthur Douglass of London. The QL displays five rows of blocks, and you may take any number of blocks from a single row. The winner is the player who takes the last block.
The program is in two listings. Listing One should be saved using: save mdv1_BOOT and Listing Two should be saved using: save mdv1_NIM. Nim uses several simple procedures which may be of use to novice programmers, including one to centre text on the screen and another to halt the program until ENTER is pressed.
The program uses our special abbreviations for graphics characters, so please read the instructions on this page before entering the program.
NOTE: from all the other Nim listings I've had to type in, surely the player who takes the last block is the one who loses...? Still, it looks like in this listing, it's the other way round. Talking of losses, even with ONE DAY'S EXPERIENCE of QL SuperBasic I can see there were #s missing in the FLASH, BORDER, PRINT and AT statement in lines 220, 640 and 650.
====================================================
Text and programs typed by Jim Waterman, April 2020.
====================================================