GitHub Star 1.6k

PlayFaceToFace

The game rules and AI are the same Elixir modules my multiplayer server uses, and Hologram runs them client-side so solo games need no server.
Jonathan, creator of PlayFaceToFace. The answers below are Jonathan's, as written.

01. What does it do, and who uses it?

It is a website for playing free browser games against AI or with friends with optional video chat. The idea behind the site is that starting a game should be easy with no account needed and one click to join a room.

02. Why did you pick Hologram? Did you consider anything else?

Most of the site’s frontend is built with Phoenix LiveView and it works well. But I wanted the games to be easy to embed on the landing page and content pages, running entirely on the client. Hologram looked like the simplest option since I could reuse a lot of my existing Elixir code.

03. Which parts of Hologram does it rely on most, and for what?

Mainly running my existing Elixir in the browser. The game rules and AI are the same Elixir modules my multiplayer server uses, and Hologram runs them client-side so solo games need no server. I use these pages as embeddable game widgets on the website and bundle them to run offline in an iOS app.

The Chess landing page with four ways to play: with friends, against the AI, a quick public match, or browsing games The How to play chess guide at Try a quick demo game, with a live chess board against the AI embedded in the article

04. What was hard, or almost made you stop?

Some functions were not supported yet and crashed in the browser so I needed workarounds. The library is a lot more mature now.

05. Anything else you'd like people to know?

Thanks to Bart for creating Hologram!

Your project could be next

Built an app with Hologram or a library for it? Submit it to the Showcase.

Submit Your Project
Sponsored by
Curiosum
Main sponsor
Erlang Ecosystem Foundation
Milestone sponsor
Evo Store
Performance sponsor
Sruplex
Innovation partner
Previous
← Community