Omnimaga

General Discussion => Technology and Development => Computer Projects and Ideas => Topic started by: ruler501 on July 13, 2013, 09:29:55 pm

Title: MaoBot
Post by: ruler501 on July 13, 2013, 09:29:55 pm
I was recently at a robotics conference where every night a large group of students would play Mao(a card game) together. I've started to really like it so I decided to write an IRC bot to let me play it. It is currently running on efnet and OmniNET in #omnimaga-games and supports OmnomIRC also :D

It currently does just the basics required of a bot and should be ready for release

Here is what it currently does
Code: [Select]
Command List
!join for joining a game
!call <target> <rule> for calling someone on breaking a rule
 -wrong/bad card or out of turn gives someone their card back and gives them another card
 -wrong/bad call reverses the last call by target and gives them a card
!view pm's you with your current hand
!quit has you leave the current game
!play <number> of <suit> plays that card. It is case sensitive
!draw gives you a card
!start creates a new game
!order the order of players by join time
!count <target> tells you how many cards the player has left
!countAll tells you how many cards each person in the game has left
It will also shuffle in a new deck if it starts running out of cards so you can always continue play(hopefully)

Please join, play, have fun, and offer suggestions for further improvement and bug fixes.

code is hosted on github at https://github.com/ruler501/maobot

EDIT: Polished up first post
Title: Re: MaoBot
Post by: ruler501 on July 15, 2013, 02:33:26 am
[BUMP]
MaoBot is now fully cross-network and Omnom compatible :D

Please come help test/play games. The code has also been put up on github for everyone to critique/admire(not gonna happen :P )
https://github.com/ruler501/maobot
Title: Re: MaoBot
Post by: Stefan Bauwens on July 15, 2013, 06:10:12 am
I just looked it up and apparently the rules may not be told? Sounds hard.
Title: Re: MaoBot
Post by: ruler501 on July 15, 2013, 06:22:39 am
It can be hard. It requires some though to learn, but pretty much all the rules are extremely basic things.
Title: Re: MaoBot
Post by: ElementCoder on July 15, 2013, 12:34:23 pm
I find Mao a fun game from time to time, but people I played it with tended to think of absurd rules that are beyond average guessing scale >_>
Title: Re: MaoBot
Post by: blue_bear_94 on July 15, 2013, 12:49:36 pm
I find Mao a fun game from time to time, but people I played it with tended to think of absurd rules that are beyond average guessing scale >_>
One of my friends did that when he won, but he repealed that rule the next game.
Title: Re: MaoBot
Post by: Sorunome on July 18, 2013, 04:16:00 pm
omnomirc pm parsing: http://pastebin.com/qZqVSsj4