Wiki: Board Games Frontend Joyride
For agents: Markdown version · Wiki index · Explore
- Speaker: Shay Davidson
- Event: Reversim Summit 2021
- Video: https://www.youtube.com/watch?v=QolZN1oxI3Q
- Transcript: /transcripts/2021/05-QolZN1oxI3Q.md
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: Frontend, Architecture, UX Design, Algorithms
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
The speaker explores the intersection of board games and frontend web development, demonstrating how building digital board game ports is both enjoyable and educational. By translating complex board game mechanics, rulebooks, and visual components into browser applications, developers can enhance their state management, UI design, and spatial data structure skills. The talk illustrates these concepts through various modern board game examples and their digital implementations. Ultimately, the speaker shows how tackling such projects improves overall problem-solving abilities and can even be utilized in technical hiring processes.
Key points
- 0:11 The speaker introduces the topic of combining board games and frontend development, highlighting how it builds both existing and unexpected developer skills.
- 4:49 Motivated by pandemic restrictions, the speaker developed a scripted multiplayer web version of the board game Azul to explore frontend challenges.
- 6:59 Board game rulebooks serve as the ultimate product specification documents, perfectly detailing edge cases and game states.
- 10:47 Turn-based game flows map very well to the Flux architecture pattern using reducers and predictable state management.
- 18:00 Modern CSS and layout APIs enable developers to translate rich visual components, custom shapes, and spatial elements into the browser.
- 28:07 Representing spatial data structures like dynamic puzzle boards and hexagonal grids provides fascinating algorithmic challenges.
- 35:42 Hexagonal grids can be represented efficiently using 3D cube coordinate systems instead of offset coordinates for uniform mathematical movement.
- 35:42 The speaker’s company successfully uses a board game development exercise in their frontend hiring process to evaluate candidates.
Takeaways
- Use board game rulebooks as a model for writing thorough product specifications and handling edge cases.
- Apply predictable state management patterns like Redux or Flux to model turn-based game logic and user actions.
- Leverage advanced CSS features and layout APIs to render rich, non-rectangular visual components in the browser.
- Choose appropriate data structures, such as cube coordinates for hexagons or hash maps for dynamic grids, to solve spatial problems.
Questions this talk answers
- How can you architect a frontend application to handle complex turn-based game states and rules?
- What are the best ways to represent hexagonal grids and spatial board layouts in code?
- How can building a side project like a board game port improve your general software engineering skills?
Technologies
JavaScript, CSS, React, Redux, Vue
Tags
architecture, css, data structures, frontend, game development, hiring, state management