{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":771282228,"defaultBranch":"main","name":"bash-pac","ownerLogin":"stuffbymax","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2024-03-13T02:23:43.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/96355058?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1714321055.0","currentOid":""},"activityList":{"items":[{"before":"4c9090936067c652fdab28388d2a120f27cfaa09","after":"c84037df6e99718beb2ec79b4dacf132a26b4ca2","ref":"refs/heads/main","pushedAt":"2024-04-28T23:08:03.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update bash-pac v1.2.1 cz.sh","shortMessageHtmlLink":"Update bash-pac v1.2.1 cz.sh"}},{"before":"072b4fd52c88d1203a36a8129c446cc65b0777ae","after":"4c9090936067c652fdab28388d2a120f27cfaa09","ref":"refs/heads/main","pushedAt":"2024-04-28T23:07:28.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update bash-pac v1.2.1.sh","shortMessageHtmlLink":"Update bash-pac v1.2.1.sh"}},{"before":"924f338ead62acba9f149493317c9b2d4b0a4c28","after":"072b4fd52c88d1203a36a8129c446cc65b0777ae","ref":"refs/heads/main","pushedAt":"2024-04-28T23:03:57.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"ffd30c5a7b27de02a3c723296e397080a7ab0b41","after":"924f338ead62acba9f149493317c9b2d4b0a4c28","ref":"refs/heads/main","pushedAt":"2024-04-28T16:15:52.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"5ea70d8e4c6cbb5f3697172f7a536a131c1fcba3","after":"ffd30c5a7b27de02a3c723296e397080a7ab0b41","ref":"refs/heads/main","pushedAt":"2024-04-28T16:15:15.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Add files via upload","shortMessageHtmlLink":"Add files via upload"}},{"before":"c295349b9fe2b9c27882e86572c86e4b9744fc39","after":"5ea70d8e4c6cbb5f3697172f7a536a131c1fcba3","ref":"refs/heads/main","pushedAt":"2024-04-28T16:14:54.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Delete bash-pac v1.2.0.sh","shortMessageHtmlLink":"Delete bash-pac v1.2.0.sh"}},{"before":"79bd90b0c47aac8a1c1dc966a64d2b050d07c6eb","after":"c295349b9fe2b9c27882e86572c86e4b9744fc39","ref":"refs/heads/main","pushedAt":"2024-04-28T16:14:35.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Add files via upload","shortMessageHtmlLink":"Add files via upload"}},{"before":"6e17f43bf4ae2aaab7e5d122c4bb534bc820a7b1","after":"79bd90b0c47aac8a1c1dc966a64d2b050d07c6eb","ref":"refs/heads/main","pushedAt":"2024-04-28T16:14:20.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Add files via upload","shortMessageHtmlLink":"Add files via upload"}},{"before":"149d479e5ec7357e33c68368304944bc4c716446","after":"6e17f43bf4ae2aaab7e5d122c4bb534bc820a7b1","ref":"refs/heads/main","pushedAt":"2024-04-24T13:47:07.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"61fb4fa582448746ddd6523a27d41fcb09aba340","after":"149d479e5ec7357e33c68368304944bc4c716446","ref":"refs/heads/main","pushedAt":"2024-04-24T13:46:24.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"44db5bebd4bc9c45684c0580ba674250972a319a","after":"61fb4fa582448746ddd6523a27d41fcb09aba340","ref":"refs/heads/main","pushedAt":"2024-04-24T13:45:07.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"b738bbb8d69c71cf4247d25b07e12dfa9de4da79","after":"44db5bebd4bc9c45684c0580ba674250972a319a","ref":"refs/heads/main","pushedAt":"2024-04-24T13:42:41.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"86637732b66eb0c1005ecf49207de69c213d440b","after":"b738bbb8d69c71cf4247d25b07e12dfa9de4da79","ref":"refs/heads/main","pushedAt":"2024-04-24T10:45:11.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update bash-pac v1.2.0 cz.sh","shortMessageHtmlLink":"Update bash-pac v1.2.0 cz.sh"}},{"before":"bac1bb73ea0420e54e87807c9f3c5796d24b51be","after":"86637732b66eb0c1005ecf49207de69c213d440b","ref":"refs/heads/main","pushedAt":"2024-04-24T10:44:23.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Add files via upload","shortMessageHtmlLink":"Add files via upload"}},{"before":"fc083bb556b1f1863c4375f484ba5a87beacab80","after":"bac1bb73ea0420e54e87807c9f3c5796d24b51be","ref":"refs/heads/main","pushedAt":"2024-04-22T15:03:45.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"0b0cdc7885fd626468b105179310131b055f1f09","after":"fc083bb556b1f1863c4375f484ba5a87beacab80","ref":"refs/heads/main","pushedAt":"2024-04-22T13:51:28.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"838e3d5ad4dd1f75aabeb7957747953ee1382945","after":"0b0cdc7885fd626468b105179310131b055f1f09","ref":"refs/heads/main","pushedAt":"2024-04-21T18:06:23.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update bash-pac v1.2.0.sh\n\nfixed score bug","shortMessageHtmlLink":"Update bash-pac v1.2.0.sh"}},{"before":"1923d323942be4bcb76afff6e1728c4b9e4fc349","after":"838e3d5ad4dd1f75aabeb7957747953ee1382945","ref":"refs/heads/main","pushedAt":"2024-04-21T17:29:48.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Delete help.md","shortMessageHtmlLink":"Delete help.md"}},{"before":"f5835f6a0ceef7f85d96904a255339e46e1ff91f","after":"1923d323942be4bcb76afff6e1728c4b9e4fc349","ref":"refs/heads/main","pushedAt":"2024-04-21T17:29:25.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update what is changed.md","shortMessageHtmlLink":"Update what is changed.md"}},{"before":"a68d032c09cd3395bec3e315af66ba6f9eb394c5","after":"f5835f6a0ceef7f85d96904a255339e46e1ff91f","ref":"refs/heads/main","pushedAt":"2024-04-21T17:27:55.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Rename help.txt to help.md","shortMessageHtmlLink":"Rename help.txt to help.md"}},{"before":"cfac60aecb4c32f2595d3363f85acc1c44ec3fe3","after":"a68d032c09cd3395bec3e315af66ba6f9eb394c5","ref":"refs/heads/main","pushedAt":"2024-04-21T17:27:27.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Rename how to run.txt to how to run.md","shortMessageHtmlLink":"Rename how to run.txt to how to run.md"}},{"before":"e9eb8c0afcdd4b1b58bde6ccaec286599964d105","after":"cfac60aecb4c32f2595d3363f85acc1c44ec3fe3","ref":"refs/heads/main","pushedAt":"2024-04-21T17:27:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Create what is changed.md","shortMessageHtmlLink":"Create what is changed.md"}},{"before":"8bafcc8d7180f137bb96f15f2ed2fc15908a3550","after":"e9eb8c0afcdd4b1b58bde6ccaec286599964d105","ref":"refs/heads/main","pushedAt":"2024-04-21T17:25:51.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"3d4168a89857c3a03469a60e92601fc60cd21f03","after":"8bafcc8d7180f137bb96f15f2ed2fc15908a3550","ref":"refs/heads/main","pushedAt":"2024-04-21T17:24:48.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Add files via upload","shortMessageHtmlLink":"Add files via upload"}},{"before":"b16ad053a0a0063dd066465ad34fc70531562a5d","after":"3d4168a89857c3a03469a60e92601fc60cd21f03","ref":"refs/heads/main","pushedAt":"2024-04-21T17:23:35.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Add files via upload","shortMessageHtmlLink":"Add files via upload"}},{"before":"b3042e85997969e5fe9a12aa42b806e5b4169359","after":"b16ad053a0a0063dd066465ad34fc70531562a5d","ref":"refs/heads/main","pushedAt":"2024-04-21T17:23:21.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Delete bash-pac v1.1.5.sh","shortMessageHtmlLink":"Delete bash-pac v1.1.5.sh"}},{"before":"6692014ca556230a04ea9e6b41a67a53e7cf7e41","after":"b3042e85997969e5fe9a12aa42b806e5b4169359","ref":"refs/heads/main","pushedAt":"2024-04-21T17:22:59.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Add files via upload\n\nColor Variables:\r\nThese variables define ANSI escape codes for different colors, allowing the script to print colored text in the terminal. Each variable corresponds to a specific color.\r\ndisplay_animation Function:\r\nThis function introduces the game by displaying a simple animation. It clears the screen and prints frames of the animation with short delays using the sleep command.\r\nspawn_enemy Function:\r\nWhen called, this function randomly places additional enemies (ghosts) on the game board. It calculates random row and column coordinates within the board boundaries and updates the board array accordingly.\r\nstart_game Function:\r\nThis function initializes the game environment and contains the main game loop. It sets up variables such as player and enemy characters, defines the game board layout, and manages player input and game state.\r\nPrinting Functions:\r\nprint_board: Clears the screen and prints the current state of the game board along with the player's score. The score is displayed in different colors based on its value (red for low scores, green for high scores, and yellow for scores in between).\r\nMovement Functions:\r\nmove_player: Handles the movement of the player character based on user input. It checks if the new position is valid (not a wall) and updates the board accordingly.\r\nmove_ghosts: Manages the movement of enemy characters (ghosts) on the game board. It calculates the optimal direction for each ghost to move closer to the player.\r\nGame Over Functions:\r\ngame_over_with_timer: Handles the game over scenario when the player loses (e.g., collides with a ghost). It prompts the player to play again, return to the main menu, or quit the game.\r\ngame_over_with_victory: Displays a victory message when the player successfully collects all the food items on the board.\r\nUtility Functions:\r\nspawn_ghosts: Places ghosts at random positions on the game board.\r\nspawn_food: Randomly generates food items on the game board.\r\nis_valid_position: Checks if a given position is within the bounds of the game board and not occupied by a wall.\r\nMenu Functions:\r\ndisplay_help: Displays instructions and controls for playing the game.\r\nsave_score: Allows the player to save their score by entering their name.\r\nview_scores: Displays the highest scores achieved by players.\r\nexit_game: Exits the script gracefully.\r\nmain_menu: Displays the main menu options and handles user input.\r\nMain Menu:","shortMessageHtmlLink":"Add files via upload"}},{"before":"49a7d8f503e90b0585a118b433b025f003f545d3","after":"f3dd2f62ef2b146301c459a7fdb87b5071e9c41a","ref":"refs/heads/beta","pushedAt":"2024-04-20T22:48:13.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update bash-pac v1.2.0.sh","shortMessageHtmlLink":"Update bash-pac v1.2.0.sh"}},{"before":"a08edabeb3a50149c939428831a5634b6cc299e9","after":"49a7d8f503e90b0585a118b433b025f003f545d3","ref":"refs/heads/beta","pushedAt":"2024-04-20T22:47:46.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Update bash-pac v1.2.0.sh","shortMessageHtmlLink":"Update bash-pac v1.2.0.sh"}},{"before":"b7077ceb19355c18469c1aedc10d4cbe4f61b5aa","after":"6692014ca556230a04ea9e6b41a67a53e7cf7e41","ref":"refs/heads/main","pushedAt":"2024-04-15T21:33:02.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"stuffbymax","name":"stuffbymax","path":"/stuffbymax","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/96355058?s=80&v=4"},"commit":{"message":"Create bash-pac 1.1.0 cz.sh","shortMessageHtmlLink":"Create bash-pac 1.1.0 cz.sh"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEPHhJpwA","startCursor":null,"endCursor":null}},"title":"Activity ยท stuffbymax/bash-pac"}