https://github.com/polterguy/tamagotchi
A microscopic Tamagotchi implementation
https://github.com/polterguy/tamagotchi
Last synced: 20 days ago
JSON representation
A microscopic Tamagotchi implementation
- Host: GitHub
- URL: https://github.com/polterguy/tamagotchi
- Owner: polterguy
- License: mit
- Created: 2020-04-17T11:57:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-17T12:07:57.000Z (about 6 years ago)
- Last Synced: 2025-02-28T23:02:32.442Z (over 1 year ago)
- Language: C#
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tamagotchi
A microscopic Tamagotchi implementation that features the following.
1. Thread synchronisation, with some tricks to avoid thread issues, such as implementing ICloneable, etc.
2. State machines
3. Design patterns (mostly Singleton, which isn't the best design pattern arguably, but relevant for this little thing)
4. Etc ...
The actual Tamagotchi library (important parts), are implemented as a .Net Standard library, while the _"GUI"_ is a simple
.Net Core 3.0 Console Application.
## Building
Should build easily with .Net Core CLI (Command Line Interface) by using e.g. `dotnet run` or something equivalent, even
though I personally use Visual Studio for Mac OS X myself.
## Testing the program out
Compile, run, and follow the instructions on the screen. Pressing 1-6 to interact with the Tamagotchi. There is a
`System.Threading.Timer` that is invoked every 5 seconds, slowly increamenting the parameters of the internally kept
Tamagotchi instance, which implies the Tamagotchi will die by itself if not interacted with for a couple of minutes.
## Purpose
Keep all the parameters of your Tamagotchi _below 100_. Once any of these reaches 100, the Tamagotchi dies!