Skip to content

A game of Pong / Air Hockey, written in Clojure / ClojureScript

License

Notifications You must be signed in to change notification settings

richardeast/pongcljs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pong CLJS

A game of Pong / Air Hockey, written in Clojure/Script

Usage

I will have a playable version on-line eventually. If you can't wait until then, use the following instructions -

To run locally, you must have Clojure and Leiningen installed Clone from git. Run lein figwheel in your terminal. Wait for a while until you see `Successfully compiled "resources/public/js/main.js". Open localhost:3449 in your browser.

For more information about Figwheel, check the Figwheel repository on GitHub.

History / Prior Art

There are many games like this. The most obvious are:

Why

Why write a game in Clojure?

  • I like Clojure. I wanted to write a hobby project in it. Something a little bigger than a Dojo sized project, but something fun. A game seems a good choice and something that pushes the boundaries of what one expects of Clojure.

  • Clojure excels at transforming data. It turns out all programming problems can be thought of as turning data from one form to another. Philosophically the visualised game is just a view of the game state.

Why write a pong clone?

  • Pong was one of the first computer games. Intuitively it's a very basic game. However with a little bit of imagination it can be quickly adapted to something different. For example, this version can be viewed like the original as an overhead, or can be angled to present the player with some depth. Having a perspective, one can easily imagine how it can be adapted to other kinds of games.

License

Copyright © 2019 Richard East

Distributed under the GNU General Public License v3.0

About

A game of Pong / Air Hockey, written in Clojure / ClojureScript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published