{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":800588057,"defaultBranch":"master","name":"goose-game-ai-driven","ownerLogin":"xpepper","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2024-05-14T16:06:38.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/450934?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1715702803.0","currentOid":""},"activityList":{"items":[{"before":"c5878d3e16a89673d0ecc567a5380c33452ab39f","after":"df50a291c7396d9c31f74a9c6bb8e884a0aaa71f","ref":"refs/heads/master","pushedAt":"2024-06-12T16:01:43.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"doc(human): Update README.md","shortMessageHtmlLink":"doc(human): Update README.md"}},{"before":"0c6815d8a7f84fae0eb9954e6f088437e88a591e","after":"c5878d3e16a89673d0ecc567a5380c33452ab39f","ref":"refs/heads/master","pushedAt":"2024-06-01T15:09:20.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"doc: Update 009.md","shortMessageHtmlLink":"doc: Update 009.md"}},{"before":"594136612e5b39b35ebbbeeda086ed0000218c72","after":"0c6815d8a7f84fae0eb9954e6f088437e88a591e","ref":"refs/heads/master","pushedAt":"2024-06-01T15:07:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"doc: Update README.md","shortMessageHtmlLink":"doc: Update README.md"}},{"before":"bb0ed00b40becdeabe6725f9a45f545b1598af6a","after":"594136612e5b39b35ebbbeeda086ed0000218c72","ref":"refs/heads/master","pushedAt":"2024-06-01T15:04:26.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"11690b718f00fd54e935a117bae59e53e783ae65","after":"bb0ed00b40becdeabe6725f9a45f545b1598af6a","ref":"refs/heads/master","pushedAt":"2024-05-15T16:12:38.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"doc(human): add initial prompt in README","shortMessageHtmlLink":"doc(human): add initial prompt in README"}},{"before":"252ac019f984c2bbfa7f627040411c469d44010a","after":"11690b718f00fd54e935a117bae59e53e783ae65","ref":"refs/heads/master","pushedAt":"2024-05-15T15:30:48.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor(human): replace oldPosition and position to track all the moves of a player while it plays the game. This should help me in the next feature, the multiple jumps. (to make a change, first make the change easy, then make the easy change... at least I hope!)","shortMessageHtmlLink":"refactor(human): replace oldPosition and position to track all the mo…"}},{"before":"88688418e993cea5437d20d57119cbd36a8b889c","after":"252ac019f984c2bbfa7f627040411c469d44010a","ref":"refs/heads/master","pushedAt":"2024-05-15T14:10:25.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"feat: add Goose spaces and movement logic\n\n- Added Goose spaces to Player.kt\n- Updated Player movement to handle landing on Goose spaces\n- Enhanced Game.kt to include Goose landing message\n- Added test case for Goose movement in GameTest.kt","shortMessageHtmlLink":"feat: add Goose spaces and movement logic"}},{"before":"6f25eed206e220bba77a3641b20971fbf0b70b5e","after":"88688418e993cea5437d20d57119cbd36a8b889c","ref":"refs/heads/master","pushedAt":"2024-05-15T14:03:04.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor(Game.kt): simplify generateMoveMessage function using when expression","shortMessageHtmlLink":"refactor(Game.kt): simplify generateMoveMessage function using when e…"}},{"before":"03e5b405b717e39da33c00e99420fa30d6f2e008","after":"6f25eed206e220bba77a3641b20971fbf0b70b5e","ref":"refs/heads/master","pushedAt":"2024-05-15T13:58:16.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor(Game.kt): extract oldPositionName function for readability\n\n- Moved the logic for determining the old position name into a separate function `oldPositionName`.\n- Updated the `generateMoveMessage` method to use the new `oldPositionName` function.","shortMessageHtmlLink":"refactor(Game.kt): extract oldPositionName function for readability"}},{"before":"c42be2339ee8bbd49fb70a131629026ed1b98480","after":"03e5b405b717e39da33c00e99420fa30d6f2e008","ref":"refs/heads/master","pushedAt":"2024-05-15T13:54:38.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor: replace magic number with constant for start position\n\n- Introduced `START_POSITION` constant in `Player.kt`.\n- Updated `Player` class to use `START_POSITION` instead of hardcoded `0`.\n- Added `wasAtStartPosition` method to `Player` class.\n- Refactored `generateMoveMessage` method in `Game` class to use `wasAtStartPosition`.","shortMessageHtmlLink":"refactor: replace magic number with constant for start position"}},{"before":"af8bcd77eb08dca47de3338265d8aeacc0d5792e","after":"c42be2339ee8bbd49fb70a131629026ed1b98480","ref":"refs/heads/master","pushedAt":"2024-05-15T13:47:53.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor: move THE_BRIDGE constant and logic to Player class\n\n- Extracted `player.getOldPosition() + dice.sum == THE_BRIDGE` logic to `Player` class.\n- Moved `THE_BRIDGE` constant from `Game` to `Player` class.\n- Updated `Game` class to use `player.landedOnTheBridgeWith(dice)` method.","shortMessageHtmlLink":"refactor: move THE_BRIDGE constant and logic to Player class"}},{"before":"7fabb13bf1c83e11a4f53233919ec83dc311b648","after":"af8bcd77eb08dca47de3338265d8aeacc0d5792e","ref":"refs/heads/master","pushedAt":"2024-05-15T13:22:24.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor: move oldPosition to Player class and simplify conditionals\n\n- Added oldPosition property to Player class.\n- Updated move method in Player to set oldPosition before updating position.\n- Simplified generateMoveMessage method by using Player's oldPosition and new bounced method.\n- Removed oldPosition parameter from generateMoveMessage method.\n- Removed bouncedFrom extension function and replaced with Player's bounced method.","shortMessageHtmlLink":"refactor: move oldPosition to Player class and simplify conditionals"}},{"before":"9113cd6801ada0e9fad47ed53a51fbfbbca224d8","after":"7fabb13bf1c83e11a4f53233919ec83dc311b648","ref":"refs/heads/master","pushedAt":"2024-05-15T13:10:25.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor: extract magic number 63 to LAST_POSITION constant\n\n- Added LAST_POSITION constant in Player.kt to replace magic number 63.\n- Updated position calculation and hasWon method to use LAST_POSITION.\n- Added new prompt in prompts/034.md discussing the refactoring.","shortMessageHtmlLink":"refactor: extract magic number 63 to LAST_POSITION constant"}},{"before":"f1cc5862c6e4c65d3788156c98998b6fe0ddacea","after":"9113cd6801ada0e9fad47ed53a51fbfbbca224d8","ref":"refs/heads/master","pushedAt":"2024-05-15T13:02:56.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor: simplify position calculation using mod operator\n\n- Simplified position calculation in Player.kt using the mod (%) operator.","shortMessageHtmlLink":"refactor: simplify position calculation using mod operator"}},{"before":"05836f94ce715f574d096e791450989e2c7cd439","after":"f1cc5862c6e4c65d3788156c98998b6fe0ddacea","ref":"refs/heads/master","pushedAt":"2024-05-15T12:55:54.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor: extract constant `THE_BRIDGE` for the number 6\n\n- Added `THE_BRIDGE` constant in `Game.kt`.\n- Updated references to the number 6 in `Game.kt` and `Player.kt` to use `THE_BRIDGE`.","shortMessageHtmlLink":"refactor: extract constant THE_BRIDGE for the number 6"}},{"before":"d0364b836f0fff00299d0a52d50104e8fe7ea3f3","after":"05836f94ce715f574d096e791450989e2c7cd439","ref":"refs/heads/master","pushedAt":"2024-05-15T12:46:54.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor(Game): update `generateMoveMessage` to accept Dice object\n\nRefactored `generateMoveMessage` to receive a single Dice object instead of two separate primitive values. Updated the method calls and logic to accommodate this change.","shortMessageHtmlLink":"refactor(Game): update generateMoveMessage to accept Dice object"}},{"before":"e895ca0754b9fc6f0c0cd9295ca65d6b943c90fc","after":"d0364b836f0fff00299d0a52d50104e8fe7ea3f3","ref":"refs/heads/master","pushedAt":"2024-05-15T12:43:03.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"feat(game): implement \"The Bridge\" feature\n\n- Add new feature where landing on space 6 (The Bridge) jumps player to space 12.\n- Update `Game.kt` to handle the new rule in `generateMoveMessage`.\n- Modify `Player.kt` to update position when landing on space 6.\n- Add new test case in `GameTest.kt` to verify the new feature.\n- Adjust existing tests to accommodate changes in player movement logic.","shortMessageHtmlLink":"feat(game): implement \"The Bridge\" feature"}},{"before":"e8ae4cc7f6a7a325f3bbb810bc944c3acb87f1c7","after":"e895ca0754b9fc6f0c0cd9295ca65d6b943c90fc","ref":"refs/heads/master","pushedAt":"2024-05-15T11:39:29.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"style(human): improve formatting","shortMessageHtmlLink":"style(human): improve formatting"}},{"before":"9237dc3c7bc83e262705b2080659c00381b64064","after":"e8ae4cc7f6a7a325f3bbb810bc944c3acb87f1c7","ref":"refs/heads/master","pushedAt":"2024-05-15T11:33:03.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"doc: add prompt description","shortMessageHtmlLink":"doc: add prompt description"}},{"before":"2668d35bfd0ef58665638d51c0dd5e5bf9b77796","after":"9237dc3c7bc83e262705b2080659c00381b64064","ref":"refs/heads/master","pushedAt":"2024-05-15T11:25:58.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor: separate the dice rolling function from the result of the roll, which is now in `Dice`","shortMessageHtmlLink":"refactor: separate the dice rolling function from the result of the r…"}},{"before":"893325ae2b481085905ea52e539e13765a90a351","after":"2668d35bfd0ef58665638d51c0dd5e5bf9b77796","ref":"refs/heads/master","pushedAt":"2024-05-15T11:02:18.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor: use the player object to identify the player instead of its name as a string","shortMessageHtmlLink":"refactor: use the player object to identify the player instead of its…"}},{"before":"4703520671dd08d43e1c113771e4b83838bb68f9","after":"893325ae2b481085905ea52e539e13765a90a351","ref":"refs/heads/master","pushedAt":"2024-05-15T10:52:33.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"feat: implement dice rolling as a pair of values and adjust game logic\n\n- Add a new markdown file for documenting TDD and pair programming practices.\n- Modify the Dice class to return a pair of integers representing two dice rolls instead of their sum.\n- Update the Game class to handle the new dice rolling mechanism and adjust related methods to use the pair of dice values.\n- Refactor GameTest to accommodate changes in the dice rolling logic and ensure all tests reflect the updated game behavior.","shortMessageHtmlLink":"feat: implement dice rolling as a pair of values and adjust game logic"}},{"before":"5a854dc5b1a3e4584000b5601aa6d430c8ebec6f","after":"4703520671dd08d43e1c113771e4b83838bb68f9","ref":"refs/heads/master","pushedAt":"2024-05-15T10:09:35.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor: extract bounce logic in Game class\n\n- Refactor `generateMoveMessage` in `Game.kt` to use extracted `bounceMessage` and `bouncedFrom` methods for clarity and maintainability.\n- Create a new markdown file to discuss refactoring opportunities in TDD approach.","shortMessageHtmlLink":"refactor: extract bounce logic in Game class"}},{"before":"8a34e97ceec9684e00d51c687c9fe410b2d22fe2","after":"5a854dc5b1a3e4584000b5601aa6d430c8ebec6f","ref":"refs/heads/master","pushedAt":"2024-05-15T09:53:48.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"chore(human): add directive to avoid warning messages \"A Java agent has been loaded dynamically...\" when executing tests","shortMessageHtmlLink":"chore(human): add directive to avoid warning messages \"A Java agent h…"}},{"before":"a4f5a714bf178fc041793b2576d1ae0fcde89f29","after":"8a34e97ceec9684e00d51c687c9fe410b2d22fe2","ref":"refs/heads/master","pushedAt":"2024-05-14T19:58:24.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"style(human): use idiomatic Kotlin style","shortMessageHtmlLink":"style(human): use idiomatic Kotlin style"}},{"before":"e6a7dc295da34f9edd18f3ef06434ed4e2581382","after":"a4f5a714bf178fc041793b2576d1ae0fcde89f29","ref":"refs/heads/master","pushedAt":"2024-05-14T19:56:20.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor(Game.kt): simplify generateMoveMessage function by removing newPosition parameter\n\nThe `generateMoveMessage` function in `Game.kt` has been updated to remove the `newPosition` parameter. The function now uses `player.getPosition()` directly within the message construction, simplifying the method signature and usage. This change affects how the bounce condition and message are calculated and displayed.","shortMessageHtmlLink":"refactor(Game.kt): simplify generateMoveMessage function by removing …"}},{"before":"9734fb53a465252ede74da40af5ef1e5538eb20e","after":"e6a7dc295da34f9edd18f3ef06434ed4e2581382","ref":"refs/heads/master","pushedAt":"2024-05-14T19:55:18.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor(Game.kt): simplify generateMoveMessage function by removing newPosition parameter\n\nThe `generateMoveMessage` function in `Game.kt` has been updated to remove the `newPosition` parameter. The function now uses `player.getPosition()` directly within the message construction, simplifying the method signature and usage. This change affects how the bounce condition and message are calculated and displayed.","shortMessageHtmlLink":"refactor(Game.kt): simplify generateMoveMessage function by removing …"}},{"before":"f3d8d8a241a0100379539bcd01232a266d517beb","after":"9734fb53a465252ede74da40af5ef1e5538eb20e","ref":"refs/heads/master","pushedAt":"2024-05-14T19:48:05.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"feat: implement player bounce back logic when moving beyond space 63\n\n- Add new markdown file with test scenarios and feedback.\n- Update `Game` and `Player` classes to handle the bounce back scenario when a player's move exceeds space 63.\n- Adjust `generateMoveMessage` in `Game` to include new position and bounce back message.\n- Modify `Player.move` method to calculate new position correctly when exceeding space 63.\n- Remove redundant test case in `GameTest` after implementing the required functionality.","shortMessageHtmlLink":"feat: implement player bounce back logic when moving beyond space 63"}},{"before":"7384bfea575fdff30573bd3e8a6ebab3f65fc7c0","after":"f3d8d8a241a0100379539bcd01232a266d517beb","ref":"refs/heads/master","pushedAt":"2024-05-14T19:36:17.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"refactor(human): extract the `Player` class in a separate file","shortMessageHtmlLink":"refactor(human): extract the Player class in a separate file"}},{"before":"b70c0264b02a8979404091b0f818758485dc72ff","after":"7384bfea575fdff30573bd3e8a6ebab3f65fc7c0","ref":"refs/heads/master","pushedAt":"2024-05-14T17:19:39.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"xpepper","name":"Pietro Di Bello","path":"/xpepper","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/450934?s=80&v=4"},"commit":{"message":"test: add the bouncing scenario in the tests","shortMessageHtmlLink":"test: add the bouncing scenario in the tests"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEY4NoewA","startCursor":null,"endCursor":null}},"title":"Activity · xpepper/goose-game-ai-driven"}