GitXplorerGitXplorer
k

Nibbles

public
7 stars
2 forks
0 issues

Commits

List of commits on branch main.
Unverified
e402027a2afec90f84005187a1a9ec03378a311c

Upgrade to .NET 8.0.

kkpreisser committed a year ago
Unverified
3eabb32406e8dc9b2e8407b793a228bcf8af0827

Use default formatting.

kkpreisser committed a year ago
Unverified
7e0efbcf76e98139fb2cea8d966705af130f3281

Refactor.

kkpreisser committed a year ago
Unverified
bd79bcea8ca3e7a8fa9f8d7c5c8ec836218168b9

Use manual memory barriers instead of volatile fields as the latter doesn't always match our intended memory barrier model.

kkpreisser committed a year ago
Unverified
ad6a1eb1eaebe39fe601a356e21794dbf54fd648

Follow-Up: Update README.md.

kkpreisser committed 2 years ago
Unverified
740e469374903bd88f37f95809b879d2b3e92a23

Update to .NET 6.0.

kkpreisser committed 2 years ago

README

The README file for this repository.

Nibbles

A simple, console-based snake game, implemented in C# and running on .NET 8.0, inspired by QBasic Nibbles from 1990.

Because it is built for .NET, it can run on any platform that .NET supports, e.g. Windows 10 (Anniversary Update or higher), Linux and macOS.

As a console application, it uses Virtual Terminal Sequences that are supported on Linux/macOS terminals, and also on Windows 10 Anniversary Update (Version 1607) or higher, to control colors, cursor movement/visibility and the screen buffer of the console. For example, it switches to an alternate screen buffer, so that when exiting the game, the console can restore its previous content.

Screenshots

Windows 10:

nibbles-windows

Ubuntu (with Desktop Environment):

nibbles-ubuntu

CentOS (without Desktop Environment):

nibbles-centos

macOS (unfortunately, macOS's Terminal.app doesn't draw block characters at full line height, which is why it doesn't look as good as on other OSes):

nibbles-macos

Running

Install the current .NET SDK. Then run:

git clone https://github.com/kpreisser/Nibbles.git
cd Nibbles/Nibbles
dotnet run