IRC fighting game (WIP)
Go to file
2018-07-05 01:47:01 +02:00
assets epoll(2) la ^_^ 2018-07-05 01:47:01 +02:00
irc epoll(2) la ^_^ 2018-07-05 01:47:01 +02:00
IRCUFC epoll(2) la ^_^ 2018-07-05 01:47:01 +02:00
.gitignore fixed untracked files 2018-06-28 10:47:25 +02:00
log.py Removed useless variable + log error even without debug var enabled 2018-07-03 11:21:49 +02:00
main.py epoll(2) la ^_^ 2018-07-05 01:47:01 +02:00
README.md epoll(2) la ^_^ 2018-07-05 01:47:01 +02:00
TODO bugfix, strike nerf, better logic 2018-07-03 22:14:38 +02:00

IRCUFC

WORK IN PROGRESS

IRC Game to let chatters having UFC like fights.

Connect to #IRCUFC @ Efnet and type !fight to register to the next fight

once 2 fighters will be registered, you'll reveice a list of actions possible for you to do in the next turn. (kick high, punch middle, ...)

Once a fighter have no hp left, the fight is over.

How to run:

python3 main.py

General Commands:

  • !fight -- Register for the next fight
  • !status -- Get current status of the fight (If sent as PM to the bot, you'll get more information like your next move)
  • !action -- Register your next action (ex: !action kick high, !action block middle, !action standup)

Admin Commands:

  • !cancel -- Cancel the current fight

More Info:

If both fighters are attacking at the same time, then the one who will hit is random. There's still an slight advantage to the last player having hit. Also, some attacks have more chance to fail, but those ones are usually more powerful.

Using 'block' with the right level (high, middle, low) will give you a great chance to block the next hit. If so, you won't loose HP, and you'll take the advantage for the next round.. Be careful though, if for instance you block high and your opponent attacks you low or middle, you'll have 100% chance of taking the hit (Except if the strike fails). Blocking chance depend on your stance.

There's a chance for fighters to fall down. In this case, hits will be much less powerful, and your opponent will do huge damage. If both fighters are on the ground, then one of them will be above the other. (The second fighter to fall will be above. Then, the one with the advantage will be above.) You'll have to use the '!action standup' command in order to .. stand up :)

Shoutout to arab for the epoll(2) idea, and for araboly which remains the best IRC game out there!