Commit Graph

140 Commits

Author SHA1 Message Date
Juhani Krekelä d583b7cf55 Work around .keys() not producing an acceptable sequence for random.sample() anymore 2024-01-14 20:24:29 +02:00
Juhani Krekelä 7403e4f1af Update o3-base 2022-03-23 20:47:07 +02:00
Juhani Krekelä 4c30d2939d Update colondeck's location 2022-03-23 20:41:47 +02:00
Juhani Krekelä 9f5f74c456 Flush log output after each line in case output is buffered 2021-12-12 17:07:00 +02:00
Juhani Krekelä 2c6d35347c Revert "Log to stderr if run non-interactively"
This reverts commit deae8043e1.
2021-12-12 17:05:31 +02:00
Juhani Krekelä deae8043e1 Log to stderr if run non-interactively 2021-12-12 17:01:54 +02:00
Juhani Krekelä 424e6c7b67 Log connection attempts to server 2021-12-12 16:45:52 +02:00
Juhani Krekelä ed314735f9 Disable interactive console if stdin is not a tty 2021-12-12 16:37:58 +02:00
Juhani Krekelä de139b14b8 Bye Freenode 2021-12-12 16:37:35 +02:00
Juhani Krekelä f6fe53385d Add built-in authentication to o3-base 2021-05-02 00:40:22 +03:00
Juhani Krekelä 7f14036a81 Allow dump_deck.py to use non-cardcast API endpoints 2020-07-20 22:34:40 +03:00
shikhin 5b63582c59 Make tea_cah authentic to the cards against IRC tradition. 2020-07-14 17:50:10 +00:00
Juhani Krekelä 846deec537 Officially support choosing a card twice, as it was already possible due to a bug 2020-07-13 01:27:58 +03:00
Juhani Krekelä fc19e7c442 Allow multi-word names for bots 2020-06-24 04:01:58 +03:00
Juhani Krekelä 451bf710f1 Handle bot winning separately from other cases of non-player winning
Previously a person who has left the game winning would be treated like a bot
winning, where the czar stays the same. Now, in that case the czar will
be randomized while old behaviour remains for a bot winning
2020-06-23 04:50:20 +03:00
Juhani Krekelä 6af00a6d0d Avoid getting stuck if unable to get fresh random decks 2020-06-17 03:37:50 +03:00
Juhani Krekelä 54ca90a1a7 Remove cardcast namespace in favour of ahti namespace 2020-06-03 02:07:13 +03:00
Juhani Krekelä 4357ea6510 Add a concept of deck namespaces 2020-04-09 22:08:16 +03:00
Juhani Krekelä 8fedaf40d1 Switch from Cardcast-hosted to puck-hosted offtopiadeck 2020-04-09 21:08:53 +03:00
Juhani Krekelä 380c095447 Fix the game state not being cleared correctly if an incorrect preset was used 2019-12-11 22:13:06 +02:00
Wolfgang Müller 2f8fb69dbf Extend the usage function and add descriptions for commands
User-facing help text is now kept in a dictionary where command tuples
map to help entries. This greatly simplifies maintenance should more
commands be added in the future.

Additionally, every command now has a short description that serves to
give players a quick overview of its functionality.
2019-10-12 13:07:34 +02:00
hydraz 221b740bce add a !jape = !card command 2019-10-11 21:16:00 +03:00
Wolfgang Müller b936e3b880 Stop the game setup if the preset is unknown 2019-08-26 18:34:08 +02:00
Wolfgang Müller cc6b0af504 Remove the 'expert' preset
This was a leftover from development, intended to make setting up
multiple games in a row less verbose.
2019-08-26 18:04:12 +02:00
Juhani Krekelä 4c69ed9e59 Keep the same czar if they picked rando last round 2019-07-21 00:23:39 +03:00
Juhani Krekelä 23b54056c2 In case the last player to be waited on leaves the game, move from top of round to bottom of round immediately 2019-07-20 22:23:57 +03:00
Juhani Krekelä ba3f7ebaea Don't start a game with !join 2019-06-09 21:52:23 +03:00
Juhani Krekelä 632b873143 Rename {offtopia, offtopia-norandom} to {offtopia-random, offtopia} 2019-06-06 21:43:01 +03:00
Juhani Krekelä 9d08703f6f Send a message on bot removal 2019-06-01 22:39:51 +03:00
Juhani Krekelä 416f94b475 Whooops 2019-05-21 21:30:20 +03:00
Juhani Krekelä 0913abee3b Represent played cards as Card objectes instead of as indices into hand 2019-05-21 18:23:38 +03:00
Juhani Krekelä dff760e0f4 [Foo [_]] → [Foo _] 2019-05-21 17:29:00 +03:00
Juhani Krekelä bc3daf8032 Quiting → Quitting 2019-05-19 18:05:39 +03:00
Juhani Krekelä 0774f5478a Display $0 correctly in round call card 2019-05-19 18:02:42 +03:00
Juhani Krekelä 0959b2c82f Add more details about minimum required amount of players 2019-05-19 17:26:21 +03:00
Juhani Krekelä c5a58dac4e Handle IRC formatting 2019-05-15 20:50:02 +03:00
Juhani Krekelä 396b3c0185 Ignore leave-events from ppl not in the game.
Since leave-event was hooked up into ppl quiting and parting from the
channel as well as doing !leave, the message telling ppl were not in the
game would get triggered unintentionally.
2019-05-14 22:00:06 +03:00
Wolfgang Müller b38912b41d Add support for a random pick from a selection of cards
!card now accepts a comma-separated list of numbers from which it will
select one randomly, with equal probability. This selection is made
before the card event is sent out and is fully transparent to the rest
of the game logic.
2019-05-13 22:57:21 +03:00
Juhani Krekelä adfd2c81c8 Don't distrubute Nones from the hand overflow 2019-05-13 10:38:04 +03:00
Juhani Krekelä 1781614e27 Put a maximum length for cards 2019-05-12 19:29:50 +03:00
Juhani Krekelä 8db8da3d16 Add extra cards for >1 blanks 2019-05-12 19:15:11 +03:00
Juhani Krekelä 7365619fcb arg = args() → args = arg() 2019-05-12 14:32:52 +03:00
Juhani Krekelä c688acf55e Split usage info into its own function and use that to display usage if !command is misused 2019-05-12 14:30:13 +03:00
Juhani Krekelä 1ffb82ebc1 Add !redeal 2019-05-11 20:55:40 +03:00
Juhani Krekelä cf6e2fea93 Add preset offtopia-norandom 2019-05-11 20:35:27 +03:00
Juhani Krekelä b4157536bd Add [] around $0 2019-05-11 20:34:15 +03:00
Juhani Krekelä 635cab7440 Don't allow sending to the closed server socket if we are reconnecting 2019-05-11 15:32:27 +03:00
Juhani Krekelä 13c62c8577 Use the CC0 file 2019-05-11 14:37:22 +03:00
Juhani Krekelä ad02585819 Rando can require at min 0 cards 2019-05-11 11:08:31 +03:00
Juhani Krekelä c3ef05382f Start game with !join 2019-05-10 22:01:22 +03:00