{"id":17101321,"url":"https://github.com/hackerb9/ucbmaze1984","last_synced_at":"2025-08-03T09:03:55.891Z","repository":{"id":113746490,"uuid":"181267098","full_name":"hackerb9/ucbmaze1984","owner":"hackerb9","description":"Original source code of Mazewar for Sun and VAX (both GUI and VT100) from U.C. Berkeley ","archived":false,"fork":false,"pushed_at":"2019-04-14T07:17:23.000Z","size":241,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-29T01:56:36.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hackerb9.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":"2019-04-14T06:03:58.000Z","updated_at":"2021-11-04T14:12:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"dcde34e0-fc3e-422e-96ec-bcbe29283f17","html_url":"https://github.com/hackerb9/ucbmaze1984","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackerb9%2Fucbmaze1984","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackerb9%2Fucbmaze1984/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackerb9%2Fucbmaze1984/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackerb9%2Fucbmaze1984/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackerb9","download_url":"https://codeload.github.com/hackerb9/ucbmaze1984/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245153896,"owners_count":20569408,"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":[],"created_at":"2024-10-14T15:24:46.569Z","updated_at":"2025-03-23T19:16:13.968Z","avatar_url":"https://github.com/hackerb9.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mazewar\nThree folks at U.C. Berkeley, Chris Guthrie, Nick Lai, and John Coker created a re-implementation of [Maze War](https://wikipedia.org/wiki/mazewar) — the first first-person shooter video game — that ran on both Sun using Sunview graphics and VAX (supporting VT100 ASCII graphics). People could play across the net on both graphical terminals and text terminals simultaneously. Originally written in 1984 and \"advertised\" on the Usenet in comp.sources, it spread quickly on the Internet. It was possibly the first version of Maze War which could be easily played using common hardware. Souped-up versions of this code, including a hack to add 3-D graphics rendered in ASCII, remained quite popular at universities for over a decade.  \n\nThis repository is exactly the code as received from Nick Lai, with some minor redactions. While this repository will never change, the authors have released it under the BSD license, so you may fork it for your own project. \n\nCredits: *Chris Guthrie* started the project and wrote most of the code. *Nick Lai* added to the game, including all of the networking code. *John Coker* handled the Sun graphics. \n\n____\n\n# The original documentation\n\n# MAZEWAR\nMazewar is a multi-player maze game with 3-D graphics displays on machines which support the\ngraphics (currently only SUNs). The game can be played in two modes, the ’ascii mode’ and the ’sun\nmode.’ The sun mode has the addition of a three-dimensional dungeon view.\n\n## Ascii Mode\nThe ascii mode is the only mode available if compiled off of a sun. It can also be forced by giving\nthe -a (for ascii) flag when on a SUN.\n\nIn this mode, the screen is dominated by a top view of the maze, which takes up 3/4 of a 24x80 character\nscreen. Below the maze, is a list of the players and their stats.\n\nOn the maze, you appear as a ’pair of eyes’ (composed of the characters ’ˆˆ’, ’\u003e\u003e’, ’vv’, or ’\u003c\u003c’), and\nall the other players appear as small numbers, when you can see them.\n\n## SUN Mode\nYou will see three display areas on your screen, a 3-D maze, a top view of the maze, and a list of \ncurrent players and their stats.\n\nThe top-left 3-D maze view shows you what you can see from your current position in the maze.\nOther players show up as tall triangles. If the player is facing you, you will se him as a wide triangle with\nan eye, if you see his back you will see the same figure without the eye. From the side, the player will look\nlike a thin triangle, with an eye pointing in the direction he is facing.\n\nThe map view shows you your absolute position in the maze, and any player you can see in the upper\nview. This helps you orient yourself in the maze, since it is easy to get lost in the 3-D view.\nThe side stats display shows the list of active players and their vital statistics. Your player is marked\nwith an asterisk. The player numbers on the stats display correspond with the numbers on the lower top\nmaze view.\n\n## Movement\nThe default keys to move around in the maze are:\n\n    w     move forward\n    space move backward\n    Q     quit\n    a     turn left\n    d     turn right\n    x     turn around\n    s     shoot\n    j     peek around the corner to the left\n    l     peek around the corner to the right\n    k     look straight ahead (if you move this will happen)\n\nAll of the keys can be remapped to any action by setting the environment variable `MAZEWAR_KEYS`\nto a string composed of `’\u003cchar\u003e=action,\u003cchar\u003e=action,...’` Remapping keys does NOT\nunmap the default configuration, if you want to unmap a key, use ’\u003cchar\u003e=undef.’\nThe available (and hopefully self-explanatory) actions are:\n\n* redraw\n* forward\n* quit\n* turn-back\n* turn-right\n* peek-left\n* peek-right\n* back-up\n* shoot\n* turn-left\n* stop-peek\n* undef\n\nThe environment variable `MAZEWAR_BEEP` should be set to the string ’yes’, if you want Mazewar\nto beep when you press an unmapped key. Since this beep is rather annoying, this is NOT the default\naction.\n\n## Game Strategy\nOther players will appear in front of you only if you are facing them. When you see someone, it is\nbest to start shooting.\n\nIt takes only one shot to kill a player (bazookas?). Killing someone automatically gains you a few\ngeneric score points. Getting killed is accompanied with minus points. Once you are killed, you will be\nquickly resurrected in another part of the maze.\n\n## Authors\nThis game was written by Chris Guthrie and Nick Lai, and the SUN graphics done by John Coker; all\nof University of California, Berkeley.\n\nchris@BERKELEY [...!ucbvax!chris],\n\nlai@BERKELEY [...!ucbvax!lai],\n\njcoker@BERKELEY [...!ucbvax!jcoker].\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackerb9%2Fucbmaze1984","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackerb9%2Fucbmaze1984","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackerb9%2Fucbmaze1984/lists"}