Compare commits

..

3 Commits

Author SHA1 Message Date
Maximilian Moser
99f5f4bbfa Add README 2024-02-28 22:35:45 +01:00
Maximilian Moser
557a60dc6d Add MIT license 2024-02-28 22:35:35 +01:00
Maximilian Moser
3ca479a251 Add shebang line 2024-02-28 22:35:20 +01:00
3 changed files with 49 additions and 0 deletions

21
LICENSE Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2024 Maximilian Moser
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

26
README.md Normal file
View File

@@ -0,0 +1,26 @@
# Maxman
Maxman is a simple game inspired by classics such as `Pacman`, `Achtung, die Kurve!` (also known as `Zatacka`), and `Snake`.
The basic goal is to grow by eating the food lying around until you're big enough to eat your competitors.
## Getting started
The game's requirements are listed in `Pipfile`, so you can just install them with `pipenv install`.
To run the game after installing the requirements, use `pipenv run ./maxman.py`
## Controls
Per default, each player has their own key bindings (up, left, down, right):
* Maxman (yellow): `w`, `a`, `s`, `d`
* Blackman (black): `i`, `j`, `k`, `l`
Other key bindings are:
* `SPACE`: Pause/resume
## Playing against AI
If you want to play against the AI instead of other players, supply the corresponding CLI flag: `pipenv run ./maxman.py --ai`

2
maxman.py Normal file → Executable file
View File

@@ -1,3 +1,5 @@
#!/bin/env python3
import abc import abc
import dataclasses import dataclasses
import math import math