{"id":19564459,"url":"https://github.com/u8slvn/doggo","last_synced_at":"2025-04-22T11:05:10.851Z","repository":{"id":254877078,"uuid":"818146138","full_name":"u8slvn/doggo","owner":"u8slvn","description":"🐕 A basic dog AI using Markov chain and pygame.","archived":false,"fork":false,"pushed_at":"2024-08-31T12:08:27.000Z","size":791,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-16T16:54:19.307Z","etag":null,"topics":["doggo","markov","markov-chain","pet","pygame","pygame-application","python","simple-ai","virtual-pet"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/u8slvn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-21T07:43:11.000Z","updated_at":"2025-02-15T13:49:38.000Z","dependencies_parsed_at":"2024-08-29T20:20:29.178Z","dependency_job_id":null,"html_url":"https://github.com/u8slvn/doggo","commit_stats":null,"previous_names":["u8slvn/doggo"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/u8slvn%2Fdoggo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/u8slvn%2Fdoggo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/u8slvn%2Fdoggo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/u8slvn%2Fdoggo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/u8slvn","download_url":"https://codeload.github.com/u8slvn/doggo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250226468,"owners_count":21395588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["doggo","markov","markov-chain","pet","pygame","pygame-application","python","simple-ai","virtual-pet"],"created_at":"2024-11-11T05:22:07.386Z","updated_at":"2025-04-22T11:05:10.820Z","avatar_url":"https://github.com/u8slvn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"#readme\" align=\"center\"\u003e\n      \u003cimg alt=\"doggo logo\" src=\"https://raw.githubusercontent.com/u8slvn/doggo/main/assets/splash.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/u8slvn/doggo/releases\"\u003e\u003cimg alt=\"GitHub tag (with filter)\" src=\"https://img.shields.io/github/v/release/u8slvn/doggo\"\u003e\u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/badge/python-3.12-blue\" alt=\"Pypthon version\"\u003e\n    \u003ca href=\"https://github.com/u8slvn/doggo/actions/workflows/ci.yaml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/u8slvn/doggo/ci.yaml?label=CI\" alt=\"CI\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/u8slvn/doggo/actions/workflows/release.yaml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/u8slvn/doggo/release.yaml?label=Build\" alt=\"Build\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://coveralls.io/github/u8slvn/doggo?branch=main\"\u003e\u003cimg src=\"https://coveralls.io/repos/github/u8slvn/doggo/badge.svg?branch=main\" alt=\"Coverage Status\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://app.codacy.com/gh/u8slvn/doggo/dashboard\"\u003e\u003cimg src=\"https://img.shields.io/codacy/grade/359900931def4b2cba3552678519ce2e\" alt=\"Code Quality\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/u8slvn/doggo\"\u003e\u003cimg src=\"https://img.shields.io/github/license/u8slvn/doggo\" alt=\"Project license\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n**Doggo** is a basic dog AI developed in Python and using pygame as a rendering engine. The dog just walks around the screen, changing states and direction randomly and dog's fur color is also picked randomly at start. State changes are based on a [Markov chain](https://en.wikipedia.org/wiki/Markov_chain), which is a simple model to represent a sequence of possible events in which the probability of each event depends only on the state attained in the previous event.\n\nHere is a list of the dog states: `idle`, `idle and bark`, `walk`, `walk and bark`, `sit`, `sit and bark`, `lie down`, `lie down and bark`, `run`, `run and bark`, `stand`, `stand and bark`, `sleep`.\n\n**Project context**: A colleague of mine wanted to have a dog, but he couldn't because of lots of reasons. So I decided to make him a virtual dog and it was the opportunity for me to play with Markov chains.\n\n\u003cp align=\"center\"\u003e\n    \u003cimg alt=\"doggo demo\" src=\"https://raw.githubusercontent.com/u8slvn/doggo/main/assets/demo.gif\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    📦 \u003ca href=\"https://github.com/u8slvn/doggo/releases\"\u003e⇩ Download latest release ⇩\u003c/a\u003e📦\n    \u003cbr/\u003e\n    \u003ci\u003eNOTE: release binaries are generated from the \u003ca href=\"https://github.com/u8slvn/doggo/actions/workflows/release.yaml\"\u003erelease workflow\u003c/a\u003e and are unsigned.\u003cbr /\u003eYou may need to allow the execution of the binary in your system settings.\u003c/i\u003e\n\u003c/p\u003e\n\n## Controls\n\nThe project is designed as a simple pet widget to keep on your desktop. It's an always-on-top borderless window, so you need to click on it to get the focus before interacting with it.\n\n* `ESC` to quit.\n* `Left Click` to move the window around.\n\n## Install and run\n\nMake sure you have Python 3.12 installed on your machine. **Doggo** use [poetry](https://python-poetry.org/) to manage dependencies and virtual environment, so you need to install it too. Then, you can run the following commands at the root of the project:\n\n```bash\npoetry install\npoetry run python -m doggo\n```\n\n## Build locally\n\nIf you want to build the project locally, you can use the script in `scripts/build.py`. It uses [PyInstaller](https://www.pyinstaller.org/) under the hood. Don't hesitate to update the script to fit your needs.\n\n```bash\n# Available os options: windows, linux, macos\npoetry run python scripts/build.py --os \u003cos\u003e\n```\n\nThe script will generate a `dist` folder at the root of the project with the executable inside.\n\n## Development\n\nFor now, only one biome (mountain) is available. The feature to pick a biome randomly at start is already implemented, so I wish to add more in the future. Otherwise, I don't plan to add more features, like weathers or interactions, but the project is open to contributions. Just open a discussion before to make sure your idea fits the project.\n\n\n## 7.9\" screen option\n\n**Doggo** use a weird ratio of 16:5, which is not common but fits well on a 7.9\" screen. If you want to use it on a 7.9 inch screen, activating the following environment variable makes the window fit the 1280x400 resolution of 7.9\" screens.\n\n```bash\nexport DOGGO_7_9_SCREEN=1\n```\n\n\u003cp align=\"center\"\u003e\n    \u003cimg alt=\"doggo demo 7.9 screen\" src=\"https://raw.githubusercontent.com/u8slvn/doggo/main/assets/demo-7.9-screen.jpeg\"\u003e\n\u003c/p\u003e\n\n## Licenses\n\n* Code source under [GPL-3.0 License](https://www.gnu.org/licenses/gpl-3.0.en.html)\n* Assets:\n  * All assets under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)\n  * Excepting dog sprites in `src/doggo/assets/dogs` from [Pixel Dogs](https://benvictus.itch.io/pixel-dogs) by [Benvictus](https://benvictus.itch.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fu8slvn%2Fdoggo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fu8slvn%2Fdoggo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fu8slvn%2Fdoggo/lists"}