{"id":15003527,"url":"https://github.com/nelsbrock/dev-tictactoe","last_synced_at":"2026-03-14T21:03:15.927Z","repository":{"id":247468802,"uuid":"825875218","full_name":"nelsbrock/dev-tictactoe","owner":"nelsbrock","description":"A Linux driver for a character device which can be used to play Tic-tac-toe.","archived":false,"fork":false,"pushed_at":"2024-08-13T19:44:47.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T14:23:24.896Z","etag":null,"topics":["education","educational","linux","linux-device-driver","linux-driver","linux-kernel","linux-module","tic-tac-toe"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nelsbrock.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-07-08T17:09:58.000Z","updated_at":"2024-08-13T19:44:50.000Z","dependencies_parsed_at":"2024-08-13T22:41:22.894Z","dependency_job_id":null,"html_url":"https://github.com/nelsbrock/dev-tictactoe","commit_stats":null,"previous_names":["nelsbrock/dev-tictactoe"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelsbrock%2Fdev-tictactoe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelsbrock%2Fdev-tictactoe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelsbrock%2Fdev-tictactoe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nelsbrock%2Fdev-tictactoe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nelsbrock","download_url":"https://codeload.github.com/nelsbrock/dev-tictactoe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243154910,"owners_count":20245012,"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":["education","educational","linux","linux-device-driver","linux-driver","linux-kernel","linux-module","tic-tac-toe"],"created_at":"2024-09-24T18:58:49.745Z","updated_at":"2025-12-24T21:33:35.218Z","avatar_url":"https://github.com/nelsbrock.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# /dev/tictactoe\n\nA Linux driver for a character device which can be used to play\n[Tic-tac-toe](https://en.wikipedia.org/wiki/Tic-tac-toe).\n\n## Usage\n\n*Disclaimer:* I make no guarantees about the soundness of the driver code.\nUse with caution (i.e. only in a virtual machine).\n\n### Building\n\nClone this repository, `cd` to it, then run `make`.\n\n### Loading\n\nAfter building the module, run `insmod tictactoe.ko` as root to load it.\n\n### Using the device\n\nAfter loading the module, player X can write grid coordinates\n(ranging from 1 to 3, format `XY`) to `/dev/tictactoe` to make their first move:\n\n```console\n# echo 12 \u003e /dev/tictactoe\n```\n\nAfter player X has made their move, player O can do the same:\n\n```console\n# echo 22 \u003e /dev/tictactoe\n```\n\nTo inspect the current state of the game, simply read from `/dev/tictactoe`:\n\n```console\n# cat /dev/tictactoe\n```\n\n```\n#####\n# X #\n# O #\n#   #\n#####\n\nIt's X's turn!\n```\n\nAlternatively, you can `watch` the file in a separate terminal for automatic\nupdating:\n\n```console\n# watch -n 0.5 cat /dev/tictactoe\n```\n\nTo start a new game, write `reset` to `/dev/tictactoe`:\n\n```console\n# echo reset \u003e /dev/tictactoe\n```\n\n### Unloading\n\nRun `rmmod tictactoe` as root to unload the module.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnelsbrock%2Fdev-tictactoe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnelsbrock%2Fdev-tictactoe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnelsbrock%2Fdev-tictactoe/lists"}