1878 Commits

Author SHA1 Message Date
Matthias Meusburger
61fd7f80bd Change some display (be less verbose)
Shorten scores-list and times-lists to 5 elements
Sort scores of the hunt
2012-08-22 17:27:25 +02:00
Matthias Meusburger
0afd95324e Adds worst times
Adds minthrottle and maxthrottle as channel values
Adds extra points for a perfect hunt (all ducks shot by the same player)
Prevent error when a hunt is stopped and no duck has been shot
2012-08-09 12:38:51 +02:00
Valentin Lorentz
9a970e4edc BadWords & Nickometer: Use 'future' divisions. 2012-08-04 18:54:14 +02:00
Matthias Meusburger
86cd7aed8c Use the 'admin' converter for the mergescores, mergetimes, rmscore and rmtime commands (instead of checking the capability in the code) 2012-07-21 15:07:43 +02:00
Matthias Meusburger
f016a3bc1b Adds an optional channel parameter to the mergescores and mergetimes commands.
Also, use more precise wraps (channel and nick instead of anything)
2012-07-21 14:54:29 +02:00
Matthias Meusburger
43be7c99c2 Adds an optional <channel> parameter to rmtime, rmscore, listtimes and listscores
Separate scores calculation and writing (so that rmtime, rmscore, listtimes and listscores) are immedialely effective
2012-07-20 17:37:58 +02:00
Matthias Meusburger
b76251f1e9 Rename merge command to mergescores
Add mergetimes, rmscore and rmtime commands
2012-07-20 12:22:43 +02:00
Matthias Meusburger
64c5b0fd5f Adds a lock when someone bangs, to prevent from lauching a duck at the same time 2012-07-20 12:20:14 +02:00
Matthias Meusburger
5e5049de50 Several modifications/improvements:
- Use threading
  - Send the duck directly without queuing, so times are more accurate
  - Adds comments
2012-07-19 17:31:30 +02:00
Matthias Meusburger
1453735918 Update documentation 2012-07-17 22:06:14 +02:00
Matthias Meusburger
568678e253 First commit, the DuckHunt game for IRC 2012-07-17 20:59:22 +02:00
Matthias Meusburger
b808803288 Initial commit 2012-07-17 11:52:55 -07:00
Mike Mueller
19c1edd673 Merge pull request #4 from BenSchomp/master
Semantic clean ups.
2012-05-18 10:45:53 -07:00
Ben Schomp
158debccb7 stop giving a single player with 0 points credit for a 'win' 2012-05-18 13:37:51 -04:00
Ben Schomp
5ab9ee8163 Stick with msg themes, coloring 'Game Stopped' msg red in private channels. 2012-05-18 12:43:04 -04:00
Mike Mueller
444ea4d932 SImplify Worddle difficulty behavior.
* Created a Difficulty class to abstract easy/medium/hard/evil (DRY).
* Changed configuration setting from min length to difficulty.
* Tolerate the deprecated 'join' subcommand to worddle.
* Improve game messaging to player.
* Updated documentation.
2012-05-16 17:37:04 -07:00
Ben Schomp
9cd87ee22e update readme 2012-05-15 22:12:48 -04:00
Ben Schomp
c8af98c408 Simplified Worddle invocation, indicate level/min
length in private window if not default.
2012-05-14 22:11:22 -04:00
Mike Mueller
eb8ca3fb60 Customize Worddle min word length.
Instead of a hard-coded 3, you can set a configuration value or pass a
--min=N parameter to the start command.
2012-05-02 01:34:31 -07:00
Mike Mueller
6648d546e4 Remove debugging code. 2012-05-02 00:51:00 -07:00
Mike Mueller
94632a6bcf Optimize prefix trie used in Worddle.
This makes the code a little uglier, but cuts time and memory in half when
building a new Worddle board.  Also updated the boards to not save a reference
to the wordtrie, so after generating the board, it's free for garbage
collection.
2012-04-27 18:23:04 -07:00
Mike Mueller
68dbff765c Compact color codes in Worddle results.
Previously every word would be LCYAN+word+LGRAY (or GRAY+word+LGRAY) and all
these extra color codes would cause the message to be truncated when a lot of
words are found.  Compacted by only sending a color code when a color change
is needed.
2012-04-24 17:07:13 -07:00
Mike Mueller
357d31490d Update game state on @worddle stop.
Otherwise subsequent calls to @worddle stats would throw an exception.
2012-04-23 23:48:19 -07:00
Mike Mueller
0dc36d83b5 Delete game if starting fails.
Can't be sure what kind of state the game is in, so it shouldn't be left
around (receiving handle_message calls, for example).
2012-04-23 23:46:47 -07:00
Mike Mueller
79093bffbc Use medium difficulty by default. 2012-04-23 19:44:03 -07:00
Mike Mueller
6aacd441d0 Make Wordshrink a little easier.
The previous difficulty settings were borderline insane.
2012-04-23 19:42:47 -07:00
Mike Mueller
142d61cbac Handle WordChain puzzle build failures.
Given certain dictionaries (e.g. scrabble), it can be hard or impossible to
create a puzzle meeting the criteria of 'hard' or 'evil' WordShrink.
2012-04-23 19:42:32 -07:00
Mike Mueller
43f07fd142 Attempt to make bountiful Worddle boards.
Generate 5 boards and pick the one with the most solutions.  It's more fun
when there are more solutions to be found.

Refactored a little - the board is now a class WorddleBoard.  Moved the
generation and solution discovery to WorddleBoard.  This simplifies Worddle a
little bit, but it probably could be simplified further.
2012-04-22 20:07:22 -07:00
Valentin Lorentz
72a8c24d73 BadWords: Add support for +h. 2012-04-15 21:02:42 +00:00
Mike Mueller
cb29595e53 Merge pull request #2 from BenSchomp/master
Make the golden ticket pure gold.
2012-04-12 14:42:28 -07:00
Ben Schomp
efa6c89e40 Keep the color scheme. 2012-04-12 17:30:18 -04:00
Mike Mueller
a28617b03a Merge pull request #1 from BenSchomp/master
Award getting a longest word.
2012-04-09 11:09:01 -07:00
Ben Schomp
38fc1e5ad6 Worddle: Award a golden ticket (yellow '*') in the post game word list for getting a longest word. 2012-04-09 13:31:07 -04:00
Mike Mueller
e706b6816b Clean up board display.
Removed color from "starting in n seconds" message to reduce distraction.
Moved board one column right to give it more breathing room.
2012-04-04 17:59:57 -07:00
Mike Mueller
c51e21b003 Add a "worddle stats" command. 2012-04-04 17:57:24 -07:00
Mike Mueller
77b94e68b2 Clean up and dial down messages.
Trying to make the game a little quieter in the main channel, and in general
cut down on flooding.  Still no verbosity tuning, but this should be a more
reasonable default level.
2012-04-04 15:28:10 -07:00
Mike Mueller
d3945ea763 Attempt to refactor text messages.
Worddle has a lot of logic dedicated to formatting text, and it makes the
code a little unreadable.  I tried to move most of the format strings out
as constants (and color them once instead of every time).  The resulting
code is a little cleaner looking, but I'm not sure I love it.
2012-04-04 01:52:38 -07:00
Mike Mueller
1b1b5331ea Inform late joiners of time left.
When you join late, you find out exactly how many seconds you have left
in the game.
2012-04-04 00:21:03 -07:00
Mike Mueller
79082016ef Implement "official" scoring mechanism.
Word values are now:

  Length | Points
  -------+--------
   3, 4  | 1
   5     | 2
   6     | 3
   7     | 5
   8+    | 11
2012-04-03 17:03:16 -07:00
Mike Mueller
4d5c9e4d2c Add 'start' and 'stop' Worddle commands.
Default is "start" so you can still just say "@worddle" to start a game.
"worddle stop" is the same as saying "@wordquit".
2012-04-03 17:01:34 -07:00
Mike Mueller
121aa4c224 Remove nested blockquotes in README.
After seeing how it looks with Github's CSS, I think this works better.
2012-04-02 02:18:15 -07:00
Mike Mueller
1a74f37507 Attempt to make nested blockquotes work.
I tested this README with sundown, Github's Markdown implementation, and yet
it still screwed me when I pushed to Github.
2012-04-02 02:15:25 -07:00
Mike Mueller
5708e06b5e Update README and convert to Markdown. 2012-04-02 02:11:42 -07:00
Mike Mueller
bffa11361a Fix Worddle to handle simultaneous games.
It was using the string 'worddle' as the unique identifier in all
scheduled events, which meant that a second game (in another channel,
at the same time) will erase the first game's scheduled events.

Now use the Worddle object's unique identifier when scheduling events.
2012-04-02 01:11:14 -07:00
Mike Mueller
78cef6b7a6 Clean up plugin shutdown logic.
Worked around a supybot bug and abstracted shutdown to calling
game.stop(now=True).  This way the Wordgames class can be ignorant
of the details of stopping a game.
2012-04-02 01:05:06 -07:00
Mike Mueller
21699c34c3 Relay pre-game taunts between players.
Anything typed before "Get Ready!" will be sent to other players.
2012-03-28 23:31:59 -07:00
Mike Mueller
25d750135c Support Freenode's TARGMAX value. 2012-03-28 23:16:17 -07:00
Mike Mueller
1462efce5f Fix bug showing Qu in 4th column.
If Q was the last letter in a row, it Was showing just 'Q' since the 'Q '
substring wasn't found.
2012-03-28 22:45:15 -07:00
Mike Mueller
7f721e7fb9 Tune pre-game timing.
* Whenever someone joins, put at least 5 seconds on the pre-game clock.
  (If more than 5 seconds are already remaining, do nothing.)
* Use the entire delay period before showing "Get ready!".
* Delay 3 more seconds before jumping into the game.
2012-03-28 00:42:28 -07:00
Mike Mueller
8f7016f28e Factor out Worddle results into class.
Also, results are now presented in descending order by score.
2012-03-28 00:30:44 -07:00