| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | (TicTacToe): Created new helper functions `display` to `Player` and `AI` ↵ | 2020-04-13 | -0/+8 | |
| | | | | | class to avoid `if` checks in strings. | |||
| * | (TicTacToe): Setting winning as priority in AI instead blocking opponent. | 2020-04-12 | -1/+1 | |
| | | ||||
| * | (TicTacToe): Implemented AI to game and cog. | 2020-04-12 | -28/+54 | |
| | | ||||
| * | (TicTacToe): Created `AI` class for Tic Tac Toe against computer playing. | 2020-04-12 | -0/+47 | |
| | | ||||
| * | (TicTacToe): Created command to show game information `tictactoe history ↵ | 2020-04-09 | -0/+10 | |
| | | | | | show <game_id>`. | |||
| * | (TicTacToe): Added way to send board to custom channel in `Game.send_board`. | 2020-04-09 | -1/+3 | |
| | | ||||
| * | (TicTacToe): Added new variable to `Game` class: `canceled`, applied it's ↵ | 2020-04-09 | -2/+24 | |
| | | | | | changes and created new `tictactoe history` command. | |||
| * | (TicTacToe): Added loser and winner attaching to `Game.play` winning handling. | 2020-04-09 | -0/+2 | |
| | | ||||
| * | (TicTacToe): Added check that don't allow you to play against yourself to ↵ | 2020-04-09 | -0/+3 | |
| | | | | | `tictactoe` command. | |||
| * | (TicTacToe): Removed unnecessary variable `channel` from `Game`. | 2020-04-09 | -3/+1 | |
| | | ||||
| * | (TicTacToe): Added winner check to `Game.play`. | 2020-04-09 | -0/+5 | |
| | | ||||
| * | (TicTacToe): Created helper function `Game.check_for_win`. | 2020-04-09 | -0/+18 | |
| | | ||||
| * | (TicTacToe): Created `edit_board` function to `Game`, made fixes to ↵ | 2020-04-09 | -2/+29 | |
| | | | | | `Player.get_move`, implemented `Game.play` functionality. | |||
| * | (TicTacToe): Redesigned board system, applied it's changes + created new ↵ | 2020-04-09 | -8/+39 | |
| | | | | | function to `Player` class: `get_move`. | |||
| * | (TicTacToe): Created function `Game.play`. | 2020-04-09 | -0/+6 | |
| | | ||||
| * | (TicTacToe): Removed unnecessary variable creation in `Game.send_board`. | 2020-04-09 | -2/+1 | |
| | | ||||
| * | (TicTacToe): Added `symbol` to player class creation in `tictactoe` command. | 2020-04-07 | -1/+1 | |
| | | ||||
| * | (TicTacToe): Added `symbol` to `Player` class. | 2020-04-07 | -1/+2 | |
| | | ||||
| * | (TicTacToe): Added check is opponent free when request playing. | 2020-04-07 | -0/+5 | |
| | | ||||
| * | (Constants, TicTacToe): Fixed number emojis contants, created helper ↵ | 2020-04-07 | -2/+21 | |
| | | | | | function `send_board` to `Game` class. | |||
| * | (TicTacToe): Moved checks to outside of class, created initial tic tac toe ↵ | 2020-04-07 | -16/+30 | |
| | | | | | command. | |||
| * | (TicTacToe): Created new class variable `over` to `Game`, added over check ↵ | 2020-04-07 | -2/+7 | |
| | | | | | to cog checks. | |||
| * | (TicTacToe): Created check `is_requester_free`. | 2020-04-07 | -0/+7 | |
| | | ||||
| * | (TicTacToe): Created check `is_channel_free`. | 2020-04-07 | -1/+8 | |
| | | ||||
| * | (TicTacToe): Added new variable `games` to `TicTacToe` cog. | 2020-04-07 | -0/+1 | |
| | | ||||
| * | (TicTacToe): Created helper function `add_reactions` to `Game` class to add ↵ | 2020-04-07 | -0/+5 | |
| | | | | | all number reactions to message. | |||
| * | (TicTacToe): Added `get_confirmation` function to `Game` class to make sure ↵ | 2020-04-07 | -0/+41 | |
| | | | | | that opponent want to play. | |||
| * | (TicTacToe): Added new player-about variables to `Game` class. | 2020-04-07 | -0/+6 | |
| | | ||||
| * | (TicTacToe): Replaced `discord.User` with `Player` in `Game` class signature. | 2020-04-07 | -1/+1 | |
| | | ||||
| * | (TicTacToe): Added `ctx` variable to `Player` class. | 2020-04-07 | -1/+2 | |
| | | ||||
| * | (TicTacToe): Created `Game` class | 2020-04-07 | -1/+12 | |
| | | ||||
| * | (TicTacToe): Created `Player` class | 2020-04-07 | -0/+8 | |
| | | ||||
| * | (TicTacToe): Created initial empty cog with loading. | 2020-04-07 | -0/+15 | |
| | | ||||
| * | Merge master: adjust `Space` cog location | 2020-04-01 | -4/+273 | |
| | | | | | Module was placed in the `seasons` pkg, which we renamed to `exts`. | |||
| * | Docstring: remove dots from list entries | 2020-04-01 | -8/+8 | |
| | | ||||
| * | Deseasonify: remove redundant log level setter | 2020-04-01 | -1/+0 | |
| | | ||||
| * | Deseasonify: implement __str__ for Month enum | 2020-04-01 | -4/+3 | |
| | | | | | | | | | This way, we can standardize the way Months are shown to both the user and the developer. Note that if passing a Month member to an f-string, the `!s` format code must be specified to ensure our __str__ is used. Co-authored-by: MarkKoz <[email protected]> | |||
| * | Deseasonify: yield ints representing days since cycle | 2020-03-31 | -15/+14 | |
| | | | | | | | | | | | | | | | Previously, the `should_cycle` iterator would signal that it is time to cycle by yielding True. As per Mark's suggestion, this is adjusted to yield either None, or ints representing days since last cycle. This is more transparent, as the daemon can now perform the comparison against the configured cycle frequency itself, rather than relying on being fed the correct value from a "black box". See `_reset_should_cycle` docstring for further clarification. Co-authored-by: MarkKoz <[email protected]> | |||
| * | Deseasonify: set target branch to master | 2020-03-31 | -1/+1 | |
| | | | | | | With the 'seasonal-structure' branch being merged in the branding repository, we can start polling master. | |||
| * | Deseasonify: title-case month names in frontend | 2020-03-31 | -2/+2 | |
| | | | | | | | | After 00af207de3087a41270f216ad86e06ba7dbf9d42, we should ensure that the month names aren't shown to the user in all caps. Co-authored-by: MarkKoz <[email protected]> | |||
| * | Deseasonify: turn helpers into regular functions | 2020-03-31 | -5/+5 | |
| | | | | | | | It is not necessary for these to be coroutines. Co-authored-by: MarkKoz <[email protected]> | |||
| * | Deseasonify: `pop` from remaining icons rather than unpack | 2020-03-31 | -1/+1 | |
| | | | | | | | This should be more readable. Co-authored-by: MarkKoz <[email protected]> | |||
| * | Deseasonify: delegate refresh to dedicated command | 2020-03-31 | -3/+1 | |
| | | | | | | | Reduces code duplication. Co-authored-by: MarkKoz <[email protected]> | |||
| * | Refactor: Github to GitHub | 2020-03-31 | -15/+15 | |
| | | | | | Co-authored-by: MarkKoz <[email protected]> | |||
| * | Refactor: adjust docstrings based on feedback | 2020-03-31 | -10/+6 | |
| | | | | | | | | | * Capitalize month names * Add backticks to `sha` attr reference * Avoid misusing the term 'poll' Co-authored-by: MarkKoz <[email protected]> | |||
| * | Refactor: capitalize Month enum members | 2020-03-31 | -13/+13 | |
| | | | | | Co-authored-by: MarkKoz <[email protected]> | |||
| * | Deseasonify: add persistent branding configuration | 2020-03-30 | -5/+31 | |
| | | | | | | | | | | | | | | | | | | | | | A persistent config file will remember whether the daemon is supposed to be running, or not. This means that instead of relying on the env variable, the daemon can be turned on or off "once and for all" via a command, and will not violate this decision on restart. This effectively deprecates the `Branding.autostart` env var. It is believed that having two ways to configure the same thing would be more confusing than useful. The env var will be removed. The two helper functions for reading and writing have been implemented in a generic manner, meaning that should a new config key be added in the future, the helpers shouldn't require any further adjustments. Suggested by lemon and scragly. Co-authored-by: Leon Sandøy <[email protected]> Co-authored-by: scragly <[email protected]> | |||
| * | Deseasonify: reduce icon shuffle log verbosity | 2020-03-29 | -1/+1 | |
| | | | | | | It is not necessary to log all icon paths on each shuffle. Creates unnecessary visual clutter in the logfile. | |||
| * | Deseasonify: re-order command defs for consistency with doc | 2020-03-28 | -52/+52 | |
| | | | | | | | | | Define commands in the same order in which the cog's docstring lists them. This shall make it easier to browse or look up implementations. The commands are defined roughly in the order in which a user would be expected to use them. | |||
| * | Deseasonify: add cmd showing all available seasons | 2020-03-28 | -1/+24 | |
| | | ||||