<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ryan Rothweiler on Medium]]></title>
        <description><![CDATA[Stories by Ryan Rothweiler on Medium]]></description>
        <link>https://medium.com/@ryanrothweiler?source=rss-ed46986eca49------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KH5UFVi0Ci2Drwy9Yev1Xw.png</url>
            <title>Stories by Ryan Rothweiler on Medium</title>
            <link>https://medium.com/@ryanrothweiler?source=rss-ed46986eca49------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:58:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ryanrothweiler/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[PackWorld. Unity burned me out. Rust pulled me back in. Writing a custom Rust game engine.]]></title>
            <link>https://medium.com/@ryanrothweiler/packworld-unity-burned-me-out-rust-pulled-me-back-in-writing-a-custom-rust-game-engine-8e81eee0f391?source=rss-ed46986eca49------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e81eee0f391</guid>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[rust-programming-language]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Ryan Rothweiler]]></dc:creator>
            <pubDate>Wed, 23 Jul 2025 04:52:47 GMT</pubDate>
            <atom:updated>2025-07-23T04:59:34.207Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m building a game called “PackWorld: Open packs build a world” in a fully custom Rust game engine.</p><p><a href="http://packworldgame.com/"><strong>The game is playable here in your browser. PackWorldGame.com.</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*sXBBFBUczBm_hg-bR3hvYw.png" /></figure><p>This is an article about the engine architecture, what went well and what didn’t go well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*mKJh3GVdH9n2o5OuaqRtgg.png" /></figure><h3>Unity pushes you into messy and fragile architectures while Rust encourages good ones.</h3><p>Rustaceans love entity component systems. And Unity is built on an ECS architecture! Should be great right? Its not. The issue is dependencies.</p><p>Hot take. Dependencies themselves are not bad (mostly). <br>Unclear, circular, and hidden dependencies are bad. I have no trouble reasoning about problems when one module is dependent on another through a clear structure or function call. The real problem is hidden dependencies — when the relationship between components depends on update timing or fragile internal state. These are hard to see, harder to test, and brutal to refactor</p><p>My biggest issue with Unity’s components is the dependencies between them. ALL Unity component dependencies are only checked at runtime. This is totally bonkers. Component dependencies are wired in basically two ways, GetComponent calls in code, or serialized in a yaml file as a GUID. This is exactly the kind of dependency management that makes refactoring terrible.</p><p>This kind of architecture is definitely <em>possible </em>within Rust. But the memory ownership model makes such a setup terribly difficult and unergonomic.</p><h3>Update Signals</h3><p>Ok enough complaining, let talk about one of my favorite architectures of my engine. I call them UpdateSignals, but I believe a more common name is message or pub/sub system.</p><p>In general modules only communicate with each other through UpdateSignals. PackWorld is made up of tiles. Tiles then manage their own state, but tiles can also do things like give items, or modify state in adjacent tiles. Lets use giving an item as an example. UpdateSignal is an enum with an entry for GiveItem(ItemID). The tile update loop returns a list of UpdateSignals. Then once all the tiles have been updated we process the list of update signals. It looks something like this.</p><pre>enum UpdateSignal {<br>    GiveItem(ItemID)<br>}<br><br>pub fn tile_update() -&gt; Vec&lt;UpdateSignal&gt; {<br>    // do work<br>    vec![UpdateSignal::GiveItem(item_id_giving)]<br>}<br><br><br>pub fn game_loop() {<br>    let update_sigs = tile_update()<br>    <br>    for signal in update_sigs {<br>        match signal {<br>          UpdateSignal::GiveItem(item_id) =&gt; inventory.give_item(item_id)<br>        }<br>    }<br>}</pre><p>This isn’t groundbreaking by any means, but I was amazed at how clean and easy this is. Here is why this is great.</p><ol><li>Tiles aren’t really actually dependent on the inventory system. As long as the inventory system understands the UpdateSignals then it can be refactored without worry.</li><li>The “business logic” is obvious and easily understood. Great for readability.</li><li>Testing is a breeze. You run the tile update and then assert that the expected update signals are returned. You then test the inventory system and assert that it responds correctly to the update signals. You can test the tiles without an inventory system and you can test the inventory system without any tiles. No mocking, no dependency injection, just obvious, easy, straight forward testing.</li><li>Debugging is great. You can watch and debug each message as it passes through. Theoretically you could reconstruct the entire game state by just replaying the messages, though I haven’t gone this far.</li></ol><p>I architected all “global” state change through this system. Modules have methods, if they need to change some state in another module, then its returned as an UpdateSignal and handled outside the module.</p><p>This is why I’m breaking out of Unity. Working in Unity land constricts your thinking. In Unity you’re constantly considering the other components, do they exist, how they’re configured, checking for null, caching them, etc. But an entirely different architecture can completely remove those types of problems. There are much better architectures that you might never think of if you don’t question the Unity way and I love the way Rust is making me rethink.</p><p>That is all I have! Thanks for reading! Yes very short. I have plans for more articles on my engine in the future so stay tuned and follow if you’re interested!</p><p>I’m also currently open for new work and employment opportunities. If you’re looking for help on your project please reach out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e81eee0f391" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I spent 382 hours learning Rust and all I got was this shiny monkey]]></title>
            <link>https://medium.com/@ryanrothweiler/i-spent-382-hours-learning-rust-and-all-i-got-was-this-shiny-monkey-0f3163e06921?source=rss-ed46986eca49------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f3163e06921</guid>
            <dc:creator><![CDATA[Ryan Rothweiler]]></dc:creator>
            <pubDate>Mon, 14 Oct 2024 23:05:02 GMT</pubDate>
            <atom:updated>2024-10-14T23:07:30.254Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*lkTiBX0IBmqN4PGkdH-9jQ.png" /></figure><p><a href="https://monkeypbrspin.com/">Here is said monkey.</a></p><p>I went from zero Rust knowledge, and after 382 hours of writing Rust projects, I wrote a Rust game engine to render this PBR monkey.</p><p>This year I started learning Rust. This is a quick and small article of what I made and how it went.</p><h3>Monkey?</h3><p>What you see above is a quick and dirty Rust “game engine” rendering Suzanne the blender monkey with a PBR shader.</p><p><a href="https://github.com/RyanRothweiler/ghostly_game">Source code for engine is here</a>.</p><p>Because this is a project for learning, I did as much work myself as possible. The only crates used were png for image loading, windows-rs for windows support, web-sys, wasm-bindgen, and js-sys for web support.</p><p>Some cool engine features. Nothing too fancy here.</p><ul><li>Engine runs on windows and the web.</li><li>OpenGL rendering on windows.</li><li>WebGL rendering on… well the web.</li><li>All gl bindings / loading done myself.</li><li>PBR shader (using LearnOpenGL.com as the primary source)</li><li>Matrix / Vector math</li><li>Architecture to separate platform from engine, separate game code from engine code, and separate rendering backend from engine.</li><li>DLL hot reloading for windows development.</li></ul><h3>Ramblings on the last 10 months of learning Rust.</h3><p>Some quick background. My current day job is a Unity Senior Software Engineer where I’ve been working for about 8 years. I’ve been working with Unity for over 13 years. I’ve written my own cpp game engine and PBR / IBL renderer, but nothing released or professional.</p><p>Here is all the Rust projects I’ve worked on this year! Along with how much time spent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VuOgIo95MWx_7-GcviWwnA.jpeg" /></figure><ul><li>Gengar is the name for this game engine. So from start to finish 128 hours building the engine outline, renderer, and support for windows and web.</li><li>Last Finance is an unfinished and unreleased budgeting app using Tauri + Leptos.</li><li>Advent of code is 20 days of Rust solutions for advent of code 2023. <a href="https://github.com/RyanRothweiler/aoc_2023">Repo here.</a></li><li>Rust Computer Enhance is an 8086 processor emulator following Casey Muratori’s Computer Enhance class. <a href="https://github.com/RyanRothweiler/8086_rust">Repo here.</a></li><li>Rust is simply reading the Rust book and following miscellaneous Rust tutorials.</li><li>Blockchain is Rust blockchain research.</li><li>And finally Graphite is researching the Graphite.rs editor project, which I hope to contribute to soon.</li></ul><h3>Thoughts on Rust after 382 hours</h3><p>I primarily write C#. That is my main frame of reference.</p><p>Not as difficult to use as people say. Maybe this is because I have cpp experience, and I typically avoid oop patterns. But the ownership model and borrow checker felt very natural. I never ‘fought’ with the borrow checker. The borrow checker can complain a lot. But also its usually correct in its complaints.</p><p>Cargo is incredible. I write MANY more test in Rust because Cargo makes testing so smooth. I naturally write test during the development of a feature simply because its easier to test that way over manual testing. Then I get to keep those test forever going forward! Its great!</p><p>Enums and exhaustive pattern matching feel like super powers compared to C#. This also goes hand in hand with error handling. Which likewise feels great compared to C#. Unity projects especially are full of implicit assumptions about what is or isn’t null. If you don’t make these assumptions then you code quickly becomes 10% business logic and 90% checking for null. The same can be said for exceptions. Better remember to be catching exceptions because maybe one will appear somewhere.</p><p>In general, Rust <em>feels</em> easier to work with. I need to keep less in my head to grapple with a Rust project. Traits and composition over inheritance means I don’t need to mentally load a tree of overrides to understand a single method. Explicitness over implicitness means the code tells me whats happening. Implicitness requires me to mentally fetch my understanding.</p><h3>And that concludes my thought.</h3><p>Nothing groundbreaking or insightful here. Thanks for reading! Onto the next project!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f3163e06921" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SandCat — Update 4]]></title>
            <link>https://medium.com/@ryanrothweiler/sandcat-update-4-be0bf6a4bc73?source=rss-ed46986eca49------2</link>
            <guid isPermaLink="false">https://medium.com/p/be0bf6a4bc73</guid>
            <category><![CDATA[game-design]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[sandcat]]></category>
            <dc:creator><![CDATA[Ryan Rothweiler]]></dc:creator>
            <pubDate>Fri, 14 Jul 2017 15:51:18 GMT</pubDate>
            <atom:updated>2017-07-14T15:51:18.665Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to the fourth update for SandCat, the game rules prototyping language. This update assumes you are familiar with SandCat, so read the <a href="https://medium.com/@ryanrothweiler/sandcat-introduction-6117b60cf8fc">introduction post here</a> if you’re not.</p><p>It has been a while since the last update, so a lot has happened.</p><h4>Changes in v0.0.4</h4><ul><li>Cleaned the syntax. Made everything more consistent. Removed characters that weren’t necessary, and made commands more consistent. Syntax now generally follows the pattern of Name = Type. So,</li></ul><pre>ChickenHealth = 0.<br>CowHealth = 0.</pre><pre>AddHealth = Event using Health <br>does Health = Health + 1 if Health &lt; 5.</pre><pre>GiveChickenHealth = PlayerAction does AddHealth(ChickenHealth).<br>GiveCowHealth = PlayerAction does AddHealth(CowHealth).</pre><ul><li>Added arrays which work like this,</li></ul><pre>Chickens = [5]{Health = 0, Mana = 0}.</pre><pre>ChickenCastSpell = Event using Chicken <br>does Chicken&#39;Mana = Chicken&#39;Mana - 1 if Chicken&#39;Mana - 1 &gt; 0.</pre><pre>ChickenOneCastSpell = PlayerAction <br>does ChickenCastSpell(Chickens[0]).</pre><pre>ChickenTwoCastSpell = PlayerAction <br>does ChickenCastSpell(Chickens[1]).</pre><ul><li>Randoms in arrays evaluate for each index, instead of only once for all of the indecies. This is a small change that just make random generation much easier.</li><li>Built and launched the <a href="http://www.sandcatlanguage.com/">SandCat website, which you can see here</a>. Eventually I hope the website will grow to something more, but for now I mostly wanted a place to post the games that I create with SandCat. Which brings me to the next point.</li><li>The SandCat library can now run on the web. So Unity webgl builds, or any web builds of any kind, are now possible. This is huge because it means designers can easily distribute their prototypes online for quick feedback.</li></ul><h3>Yahtz</h3><p>Yahtz is another small test game I wrote. <a href="http://www.sandcatlanguage.com/games/Yahtz/Yahtz.html">You can play the game here</a>. I spent maybe an hour writing the general design on paper and then moved to SandCat to code the prototype. A few issues came up which needed to be fixed so I wasn’t able to complete the design.</p><p>Here are the issues.</p><ol><li>The language still doesn’t reduce duplication very well. You can see this problem in Yahtz. The behavior to move the characters is partially duplicated for each character. Ideally a designer should be able to specify how characters move, then all characters move that way. I have a few different ideas for ways to fix this. One solution is to add a simple type system so designers can specify how types behave with each other. Another possible solution is to allow designers to specify how arrays interact with each other. However each of these have their own issues. This isn’t an easy problem to fix and so I don’t have any definite or planned solutions yet.</li><li>The language needs better iteration tools. The language relies mostly on recursion, and a more typical for-loop is possible, but both are a quite annoying to use. I’d like a better solution, but I don’t have any proposals yet.</li><li>I intended the game to have enemies, which when killed would drop coins. But currently it would be quite difficult to add or remove entities. I think this can be easily fixed by adding Count, Add, and RemoveAt commands to arrays. I chose this solution because its minimally invasive.</li></ol><pre>Coins = [2]{X = 0, Y = 2}.<br>Coins&#39;Add 1.<br>Coins[Coins&#39;Length]&#39;X = 5.<br>Coins&#39;RemoveAt 0.</pre><p>This update feels lacking in concrete solutions. I’m not 100% sure how to solve these problems yet, but I still wanted to put out an update. These problems are big and difficult, but the toolset is moving along. It’s getting closer to a workable solution — allowing designers to quickly specify, test, and iterate on their designs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be0bf6a4bc73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SandCat — Introduction]]></title>
            <link>https://medium.com/@ryanrothweiler/sandcat-introduction-6117b60cf8fc?source=rss-ed46986eca49------2</link>
            <guid isPermaLink="false">https://medium.com/p/6117b60cf8fc</guid>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[sandcat]]></category>
            <category><![CDATA[game-design]]></category>
            <dc:creator><![CDATA[Ryan Rothweiler]]></dc:creator>
            <pubDate>Fri, 09 Jun 2017 17:26:33 GMT</pubDate>
            <atom:updated>2017-06-09T17:26:50.577Z</atom:updated>
            <content:encoded><![CDATA[<p>Game design is difficult. There are many reasons for this, but I believe the biggest reason is that game design requires software engineering. If a designer wants to test a game they must either prototype with paper or write code. Both of these solutions have many problems. You can read more about these problems and my <a href="https://medium.com/@ryanrothweiler/improving-game-design-process-9e392ebf73af">thoughts on game design process here</a>.</p><p>There really are no good tools for game designers. All popular tools like Unity, GameMaker, UnrealEngine, or Construct are actually software production tools — they focus on creating a piece of software and not on the design of a game. These tools were not created for designers so their primary goal is to speed up the software development process but not the game design process. Because these tools don’t keep game design in mind, when a game designer has an idea, they are forced to either make a paper prototype, or write code. This is a problem — game designers should be spending their time designing games, not writing software or cutting paper. Designers need tools created specifically for them. I am working on such a tool called SandCat which aims to solve these problems.</p><p>SandCat is a game rules description language. The language allows designers to specify the rules of their game in a rigorous and declarative way. This means game designers can focus on the core design of their game, while entirely ignoring the software that allows their game to be played. However; because games are meant to be played, that software is still very necessary. Therefore SandCat also features a library of supporting code to allow someone to play a game encoded in SandCat rules.</p><p>Before explaining more, I want the reader to know that this is all currently in development. I have some nice proof of concepts, but there is still much to do. This article is meant to explain what exactly SandCat is, where I see it going, and why it’s needed. This is not meant to be a sales pitch, or a demo.</p><h3>Solutions</h3><p>The SandCat language aims to solve three core problems with current game design tools. All of these goals work together to expedite the game design process.</p><ol><li><strong>Archivable</strong>. Game designers must be able to test out an idea, put it away, and return it years later with minimal work.</li><li><strong>Expressive. </strong>Game designers must be able to describe games of significant complexity with minimal work.</li><li><strong>Iterative. </strong>Designers must be able to iterate quickly on their ideas. This also means that designers need to easily get feedback.</li></ol><h3>Game Description Language</h3><p>SandCat is a declarative language which allows designers to describe the rules of their game, effectively encoding game mechanics into the SandCat language. This focus on descriptive game rules has many advantages. Firstly, it allows the game rules to live independently of the software which runs them. This separation lets designers focus entirely on the design of their game — without being distracted by any software engineering concerns. Further, this means that SandCat rules can live through time. Software is brittle, it breaks without maintenance but SandCat rules do not have this problem because they only describe the rules of a game and not the steps of a program. This means SandCat rules do not break on their own. It will always be possible to write software which realizes the SandCat game rules, for any platform, at any time.</p><p>SandCat is not a procedural language. As such, it has no compiler, and it is never executed. A program called a runner takes input as a SandCat rules file, and then provides an interface for players to interact with the rules, effectively allowing someone to play the game which the SandCat rules file describes. Because this player interface is very important, SandCat is designed to work alongside modern game production tools. The SandCat language is designed only to handle the rules of the game — which means it requires some other piece software that allows the player to interact with the rules. For example, imagine a Unity plugin which leverages the traditional Unity toolset, allowing easy interaction with the rules specified in the SandCat language. Such a plugin can be written for any game engine.</p><h3>How does this all fit together?</h3><p>The SandCat language is the core of the solution, but the language also requires a back bone of supporting code. These supporting plugins allow the designer to utilize current game engines for common game software requirements, such as rendering, input, and various platform support. To get a clearer picture, lets look at the game development process, and how SandCat fits within it.</p><p>The game design process starts with ideas in the designer’s head. The designer then begins experimenting with these ideas, writing the mechanics of their game in the SandCat language. The designer loads these rules into the game engine of their choice, using a supplied plugin. This plugin interfaces with the game engine, allowing the engine to query the game mechanics, and report syntax and runtime errors. The designer uses this plugin to construct a display layer on top of the SandCat rules allowing the designer to organize the interactivity of their game in an intuitive way. For example the designer can add buttons or bind keys which trigger SandCat actions. Now the designer can play test their game. Certainly, the designer has some new ideas, so they then edit the SandCat rules, make any necessary visual adjustments, and play their game again. The designer can even build and distribute their game online to get more feedback. SandCat is designed to make this entire process very quick. The designer can be playtesting their ideas within minutes.</p><p>SandCat is designed to increase the speed of design iteration, sometimes at the expense runtime speed. Thus SandCat is not intended to be shipped in the final project. Traditional software engineers will still be needed to construct a final ship-able program. However; during the development process, the designer can always return to their SandCat rules and playtest a new idea within minutes. Once the designer is happy, software engineers can apply the idea to the larger project with software engineering in mind. SandCat allows designers to save time by waiting until they know they have a good idea before building the software.</p><h3>Methodology and Process</h3><p>This type of game description language has been done before. <a href="http://logic.stanford.edu/classes/cs227/2013/readings/gdl_spec.pdf">GDL is a language</a> which was designed to encode games for use in artificial intelligence. <a href="http://www.cse.unsw.edu.au/~mit/Papers/AAAI10a.pdf">GDL-II then expands the language, allowing for asymmetry.</a> However; GDL was not created for game designers so for a variety of reasons it fails to facilitate game rules iterative process.</p><p>With SandCat, I want to tackle the problem from the perspective of a game designer. With this in mind, I believe the best way to prove the language is to simply write a lot of games with it. Thus, the development of SandCat follows a circular pattern of, write a fully working game, decide on the most painful parts of that games development, find a solution, implement solution into the language, write another game, and repeat. This allows me to be very in-tune to the needs of the game design process.</p><h3>Why the name SandCat?</h3><p>A sand cat is a real animal which lives almost entirely in desert environments. The sand cat and the goals of the language share many similarities. Because the sand cat is the only cat which lives primarily in deserts, they are uniquely equipped for that environment. Similarly, the SandCat language is not general purpose. It is designed specifically for the game design iterative process. Secondly sand cats are small, agile, and quick. Likewise I hope to keep the language minimal yet expressive. Thirdly sand cats are cute, so they make a good mascot.</p><h3>Conclusion</h3><p>Everything you see here is a work in progress, there is still a lot to do, but I have a good start that I believe is encouraging. If you want to read more, I write periodic updates on my progress, <a href="https://medium.com/@ryanrothweiler/sandcat-update-3-95a0f6e5848e">here is the latest update</a>, which features a simple puzzle game written in the language.</p><p>Stay tuned for more updates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6117b60cf8fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SandCat — Update 3]]></title>
            <link>https://medium.com/@ryanrothweiler/sandcat-update-3-95a0f6e5848e?source=rss-ed46986eca49------2</link>
            <guid isPermaLink="false">https://medium.com/p/95a0f6e5848e</guid>
            <category><![CDATA[sandcat]]></category>
            <category><![CDATA[game-design]]></category>
            <dc:creator><![CDATA[Ryan Rothweiler]]></dc:creator>
            <pubDate>Sun, 14 May 2017 21:43:36 GMT</pubDate>
            <atom:updated>2017-05-16T23:07:27.423Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the third update for SandCat, the game ruleset development language.</p><p>SandCat is a game description language which allows designers to ignore software development and focus entirely on game design.</p><h3>Changes 0.0.4</h3><p>Here is a list of changes and additions.</p><ul><li>I made the first steps toward a reusable centralized runner. I reorganized the code and remove everything that wasn’t needed for the runner. There was a lot of testing code, such as some opengl rendering libraries, which are not needed, so they were removed.</li><li>I created SandCat_Runner which compiles into a dll and exposes some methods to load in game rules and query them. This is intended to be the central and only required library for playing SandCat rules files on any platform.</li><li>I created SandCat_Unity, which is a unity plugin that links to SandCat_Runner, allowing a game designer to load and play SandCat rules within Unity.</li><li>I created a few various Unity utility classes to facilitate quick iteration. Such as mapping SandCat game state values to sprites or colors. These allow designers to more easily organize how their game is displayed and interacted with.</li><li>Added error checking to SandCat_Runner. Now it reports syntax and runtime errors instead of crashing. A huge improvement.</li><li>Actions and methods can have multiple does-if statements now. This allows for more flexibility.</li><li>Added a language feature to generate random numbers within a range. More powerful methods of generating random numbers might be necessary, but this is a good first step, and sufficient enough for the majority of games.</li></ul><h3>Topsoil</h3><p>I recreated the game Topsoil for this update. Topsoil is a small puzzle game which released a few weeks back. <a href="https://topsoilgame.com/">You can see real the game here</a>. Definitely watch the trailer if you want to understand the game.</p><p>Here are the SandCat rules for Topsoil.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0cb5f6543b781640cd41f1f2706b730d/href">https://medium.com/media/0cb5f6543b781640cd41f1f2706b730d/href</a></iframe><p>And here is a gif of the game being played in Unity. The UI and interactivity is handled by Unity, but the game mechanics themselves are all described in the rules above. The visuals you see below are simply a fancy reorganization of the game state, while all changes in game state are handled by the rules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*66i624rGzbLD8o9AkA8QxA.gif" /></figure><h3>Improvements</h3><p>The problems here are obvious. Yes it works, but many behaviors are repeated multiple times. The core issue here is the grid. The language does not have the tools necessary to adequately handle the grid and because a lot of strategy games rely on grids, this is a big problem. I think two new language features are needed to solve these issues.</p><ul><li>Line expansion. <br>This line — Cell1, Cell2, Cell3 : [Plant(0), Color(0)]. <br>is equivalent to — Cell[1..3] : [Plant(0), Color(0)]. <br>I think this feature has many uses even outside of grids, so it’s something I had planned on doing regardless.</li><li>Array Structures.<br>I’m much less confident this is a good idea, but I think it’s fundamentally required because designers need to be able to index into a structure. Without arrays designers are forced to manually iterate through unorganized objects. For example, in the Topsoil test game I’m forced to iterate through the cells multiple times — the logic could be drastically simplified if I could index directly into the grid structure.</li></ul><p>I want each new feature to have many uses. I’m consciously trying to avoid the trap of creating a very specific feature which only solves very specific situations. I don’t think these two features fall into that trap, but with each new language feature I feel that I’m getting closer to that sort of problem. With this in mind, I plan to add the line expansion feature first, then recreate Topsoil using the feature. From there I’ll reassess and decide if array structures are still required. I imagine they will be, considering how many games fundamentally rely on grids and spatial relations to function.</p><p>That’s all for this update! Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95a0f6e5848e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SandCat — Update 2]]></title>
            <link>https://medium.com/@ryanrothweiler/sandcat-update-2-fc5207567160?source=rss-ed46986eca49------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc5207567160</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ryan Rothweiler]]></dc:creator>
            <pubDate>Sat, 22 Apr 2017 20:16:27 GMT</pubDate>
            <atom:updated>2017-04-26T15:22:28.108Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to the second update for SandCat. In short, SandCat is a game description language which aims to empower game designers, allowing them to focus on the game instead of the software. <a href="https://medium.com/@ryanrothweiler/sandcat-update-1-e7f4fcf95899">You can read update one here.</a> Read update 1 or my article titled <a href="https://medium.com/@ryanrothweiler/improving-game-design-process-9e392ebf73af">Improving Game Design Process</a> if you want more information about SandCat.</p><p>Also a quick disclaimer. I hope this language will be readable by non-programmers. As such, I attempt to explain the concepts without reliance on programming knowledge. Unfortunately this isn’t entirely possible. As a warning, I’m sure programmers will feel annoyed at the excessive explanations, while non-programmers will be annoyed at the lack of explanations.</p><p>Lets get to the update.</p><h3>Technical</h3><p>The first biggest change is entirely technical, and not related to the language itself. I’ve moved from a haphazard blend of parsing and lexing the rules to the traditional hard separation of the two. The old blend was messy and made simple syntactical changes a pain. This improvement is only interesting because it allows for easier syntactical error checking. Currently there is nothing to help designers to fix their syntax, something which is usually done with simple error reporting. This feature should be done soon.</p><h3>Language</h3><h4>Action Syntax</h4><p>First, I’ve changed the syntax of player initiated actions (previously called events). As a note, lines that start with an exclamation point are comments, they’re completely ignored by the parser.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3efc65d9259d83af579faeeff19c9741/href">https://medium.com/media/3efc65d9259d83af579faeeff19c9741/href</a></iframe><p>When possible, I want to move toward a more human language syntax. I hope it will help reduce the barrier of entry for designers without programming experience. I find that excessive reliance on human language can make the syntax more confusing and less readable, however: I think the switch to a human language is much stronger here.</p><h4>Dot Notation and Methods</h4><p>I’ve added two new language features. First is dot notation, and the second is methods.</p><p>Traditional programmers will be familiar with dot notation. It’s simply a way to group pieces of data. Without dot notation, pieces of data which are similar will need to be manually duplicated.</p><p>Lets imagine a worker placement game. Each action space has some resources on it and more are added each round, but only up to a maximum. Players can place workers on the action space to claim the resources, though workers cannot be stacked; the player can only place a worker on a space which does not already have a worker.</p><p>Lets start with only three action spaces, a coal mine, a wheat field, and a gold mine. A designer could specify that state like such.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d811ca20e5bf1d387b531382b23fb346/href">https://medium.com/media/d811ca20e5bf1d387b531382b23fb346/href</a></iframe><p>Unfortunately, if the designer wants to add another action space, they need to duplicate all four lines — additionally — if the designer wants to add something new to all the spaces, they must copy and paste that feature for each action space. Dot notation fixes all this by allowing designers to easily group and duplicate data. The above twelve lines does the same as line two in the code below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ebb88065a9c0560757db122d53ca646d/href">https://medium.com/media/ebb88065a9c0560757db122d53ca646d/href</a></iframe><p>This is a big improvement. Designers can easily add new action spaces, and adjust current action spaces without excessive duplication.</p><p>That leads to the next new feature — methods. Methods allow designers to specify and reuse changes in state. Back to our test game, at the end of each round, all action spaces are refilled with resources. Without methods, the designer must write that behavior for every action space, despite the fact that the behavior is exactly the same. Methods let designers package that behavior and use it across multiple actions spaces.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f105ed5db17751b1a61dd2f849868abd/href">https://medium.com/media/f105ed5db17751b1a61dd2f849868abd/href</a></iframe><p>Now the designer can easily reuse the RefillSpace behavior without manually duplicating the definition of that behavior.</p><h3>Test Game</h3><p>Here is a full, yet simple, worker placement game which shows off all the new features.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/14fc4258a6e50f5febd147ff429880df/href">https://medium.com/media/14fc4258a6e50f5febd147ff429880df/href</a></iframe><p>Here is the game being played. You’ll have to excuse the poor presentation. The entire game state is being displayed, so I understand it is difficult to see exactly what is going on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*iJQEUapqxL6SLEpWVSGEXA.gif" /></figure><p>Players have two workers which they can place on the coal mine, wheat field, or gold mine. When the player places their worker on an action space, they get the resources which are on that space. Once the player places both workers, the round ends. The player then gets both their workers back — which they can place next round — and the action spaces are filled with resources. There currently is no goal, since this is just a proof of concept.</p><h3>Future</h3><p>I’m happy with this. I think these features are a step in the right direction, but there are improvements to be made.</p><p>You might have noticed, there are two actions for placing workers on action spaces. One called PlaceDwarf_GoldMine and a second called PlaceFinalDwarf_GoldMine. From the designers perspective these two actions are very similar, so it would be better if they were one action. This can be done by allowing actions to have multiple ‘does if’ statements. This is a simple change which allows for greater flexibility. This is my first planned addition.</p><p>My second planned addition is to start adding mechanisms for visual organization. For now, this will take the form of a simple c api which allows developers to query information about the game state and display it in the best way they see fit. I have plans to take this visual organization system very far, but explaining that is out of the scope of this article.</p><p>And that’s the update. That’s all for now!</p><p><a href="https://twitter.com/RyanRothweiler">Follow me on twitter for day to day updates.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc5207567160" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SandCat — Update 1]]></title>
            <link>https://medium.com/@ryanrothweiler/sandcat-update-1-e7f4fcf95899?source=rss-ed46986eca49------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7f4fcf95899</guid>
            <category><![CDATA[game-design]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Ryan Rothweiler]]></dc:creator>
            <pubDate>Mon, 03 Apr 2017 18:37:29 GMT</pubDate>
            <atom:updated>2017-04-07T00:48:29.117Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to the first update for my latest project, SandCat. I have not yet written a true introduction to the project, so you’ll just have to bear with me for now. But — here is the meat of the project. SandCat is the first game ruleset prototyping language. The language aims to expedite the game design process by allowing designers to focus entirely on the core mechanics and rules while ignoring the software requirements. If you want more information on what I mean by this, go read my previous article <a href="https://medium.com/@ryanrothweiler/improving-game-design-process-9e392ebf73af">Improving Game Design Process</a>.</p><p>This is the first update — obviously that implies this is the first of many. These updates are where I plan to discuss language design decisions, planned features, general progress, and really anything else that applies to the project. The updates will be quick, informal, and unpolished. I’m writing these for two reasons: 1. For the reader — to market the project, get the word out, and hopefully get feedback. 2. For myself — to document progress and organize my thoughts.</p><p>Considering these are quick informal updates, everything is first draft and will most likely be changed. Therefore: I strongly encourage the reader to ignore the minute specifics and focus on the long term goal. For example, don’t pay any attention to syntax. I’m not yet worried about syntax. I know it is very rough, sub-optimal, and wildly inconsistent. I aim to prove the core ideas before I refine the specifics.</p><h3>Groundwork</h3><p>For this first update, I’ll simply introduce the beginnings of the project.</p><p>First off, all games needs some kind of state. You can specify state like such,</p><pre>Chicken.</pre><p>When played, you get this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*wXnAj9wi88IIrVTdDuoOaw.png" /></figure><p>This is simply a truth statement. It’s difficult to conceptualize without more context. We can add some context by supplying a better name.</p><pre>ChickenHealth.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*mW-MWRWSxk89cemQ1czmOw.png" /></figure><p>But a chicken’s health implies a numerical value. We can specify that also.</p><pre>ChickenHealth(10).</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*HLjJRj_gGGt4aaWvxX_3Rw.png" /></figure><p>Great. We have some very basic initial state. Now how do we change that state? For now, that is done through events. They follow the pattern of</p><pre>// event(EVENT_NAME) - STATE_CHANGING : CONDITIONS<br>event(HurtChicken) - ChickenHealth(ChickenHealth - 1) : conditional(ChickenHealth &gt; 0).</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*Um7tWop1TJS2hI_XB6QLBg.gif" /></figure><p>In english, this reads as — this event is called HurtChicken, it sets ChickenHealth to one minus the current ChickenHealth, and it is only possible if ChickenHealth is greater than 0.</p><p>I think that is a nice start. It’s very rudimentary, but it’s already capable of expressing simple games.</p><h3>Shield Push</h3><p>Using just these two features, I was able to write a small game called Shield Push.</p><p>This game features a graphical representation of the rules. Don’t worry about that. It is very important to give designers tools to visually organize their game, but I haven’t tackled that challenge yet.</p><p>Back to the game. In this game the player can move the red square around, but never outside the bounds of the grid, and never into the black square. The blue rectangle is a shield which, once picked up, allows the player to push the black square only up or down. Below are the rules definition for the game, followed by a gif of the game being played.</p><pre>// Initial state<br>GridMaxX(10).<br>GridMinX(0).<br>GridMaxY(10).<br>GridMinY(0).</pre><pre>PlayerX(2).<br>PlayerY(3).</pre><pre>BlockX(3).<br>BlockY(3).</pre><pre>ShieldPosX(5).<br>ShieldPosY(7).</pre><pre>// Moving player. Can&#39;t move into the block. <br>event(MoveUp) - PlayerY(PlayerY - 1) : <br>conditional(PlayerY &gt; GridMinY) &amp; ! [ conditional(PlayerY - 1 = BlockY) &amp; conditional(PlayerX = BlockX) ].</pre><pre>event(MoveDown) - PlayerY(PlayerY + 1) : <br>conditional(PlayerY &lt; GridMaxY) &amp; ! [ conditional(PlayerY + 1 = BlockY) &amp; conditional(PlayerX = BlockX) ].</pre><pre>event(MoveLeft) - PlayerX(PlayerX - 1) : <br>conditional(PlayerX &gt; GridMinX) &amp; ! [ conditional(PlayerX - 1 = BlockX) &amp; conditional(PlayerY = BlockY) ].</pre><pre>event(MoveRight) - PlayerX(PlayerX + 1) : <br>conditional(PlayerX &lt; GridMaxX) &amp; ! [ conditional(PlayerX + 1 = BlockX) &amp; conditional(PlayerY = BlockY) ].</pre><pre>// Pushing the block.<br>event(PushBlockUp) - PlayerY(PlayerY - 1), BlockY(BlockY - 1) : <br>conditional(PlayerY &gt; GridMinY) &amp; [ conditional(PlayerY - 1 = BlockY) &amp; conditional(PlayerX = BlockX) ] &amp; conditional(BlockY &gt; GridMinY) &amp; conditional(PlayerHoldingShield = 0).</pre><pre>event(PushBlockDown) - PlayerY(PlayerY + 1), BlockY(BlockY + 1) : <br>conditional(PlayerY &lt; GridMaxY) &amp; [ conditional(PlayerY + 1 = BlockY) &amp; conditional(PlayerX = BlockX) ] &amp; conditional(BlockY &lt; GridMaxY) &amp; conditional(PlayerHoldingShield = 0).</pre><pre>// Pickingup shield<br>event(PickupShield) - PlayerHoldingShield(0) : <br>conditional(PlayerX = ShieldPosX) &amp; conditional(PlayerY = ShieldPosY).</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*--vLafUg-p3uev8uNJCGhg.gif" /></figure><h3>Issues and Solutions</h3><p>This can obviously be improved. There are two big issues I see with this.</p><ul><li>There is a lot of repetition in the rules definition. Moving the player up or down is a very similar concept— so the similarities should be compressed and into it’s own reusable unit. The same can be said for the block. Making sure the player does not have the same position as the block should only need to be written once, but currently it’s spread across multiple events.</li><li>You cannot bundle data. For example, adding a second block is an arduous and monotonous task. This is partially because of the first issue, but also because the data and rules for the block are not bundled together.</li></ul><p>These are my next two big tasks: reduce the repetition of similar rules and allow for easier bundling and duplicating of data. I think this is off to a good start but there is still tons to do.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7f4fcf95899" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improving Game Design Process]]></title>
            <link>https://medium.com/@ryanrothweiler/improving-game-design-process-9e392ebf73af?source=rss-ed46986eca49------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e392ebf73af</guid>
            <category><![CDATA[board-games]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[game-design]]></category>
            <dc:creator><![CDATA[Ryan Rothweiler]]></dc:creator>
            <pubDate>Wed, 29 Mar 2017 03:50:57 GMT</pubDate>
            <atom:updated>2017-04-03T00:50:23.600Z</atom:updated>
            <content:encoded><![CDATA[<p>Game designers don’t seem to realize it, but the tools available to them are very poor. The process of game design is filled with difficulties and road blocks. I’m not talking about games as <em>software</em> development — I’m talking about games as <em>rulesets</em> design. The wants and desires of software developers are entirely separate from the wants and desires of a game designer, yet both use many of the same tools. Game ruleset designers need better tools if they want to push the boundaries of the medium.</p><p>When I say game ruleset designer, I mean a game designer concerned primarily with rulesets and interactive systems: I’m talking more about board games or strategy games and less about walking simulators or heavy execution games. The experiences of the latter are inseparable from the software, while games based on rules are not. For example, chess can be played with rocks on a beach, while StreetFighter can only be played on a computer which can run StreetFighter.</p><h3>Current Typical Process</h3><p>The game design process starts with ideas in the head of a designer, who then usually writes these ideas down into a design document, creating a more concrete ruleset. To prove the quality of these ideas the designer has two options. They can either make a paper prototype, or they can program the game into playable software. Both options are inherently problematic and a drain on the design process.</p><p>One option is to move from a design document to programming the rules into software. The biggest issue here is that this requires the designer to know how to write code. This is a massive time commitment: Acquiring the programming knowledge necessary to quickly iterate on a game design can take years. Even once acquired, game programming is entirely different from game design and it requires a different headspace. A game designer should not be required to also be a programmer.</p><p>Game designers often don’t program in their own game engines, because that is an even bigger time commitment, instead they use off-the-shelf packages like Unity or UnrealEngine. However, this makes the designs dependent on another software package: Without maintenance the game designs will be broken and unplayable in a few years.</p><p>If the designer decides they don’t want to spend years becoming a programmer, then they’ll then decide to prototype their ideas using paper. Though paper prototypes have their own major problems.</p><p>Creating a paper prototype is finicky and annoying. The designer must cut out paper in specific shapes and glue them onto other paper or cardboard shapes and sometimes print out grids or even draw the grid and then to play the game the designer must simultaneously run the game and play the game. Ideally the designer should be only playing the game while the rules should be managing themselves. Further, randomness is very annoying to simulate in a paper prototype. The designer must manage each varying type of randomness that the games mechanics require.</p><p>Even worse, some rulesets are impossible to paper prototype. A traditional fog of war mechanic is a good example here. Everybody knows what fog of war is, but managing it with paper is impossible since the player cannot know what is hidden by the fog of war. This discourages designers from working on certain mechanics, which is obviously a huge problem.</p><p>The real deal breaker with paper prototypes is the difficulty in playtesting. The designer must be in the same room as the playtester. This completely destroys the feedback loop inherent in design iteration and improvement.</p><p>While paper prototypes have unique problems, both prototyping solutions do have some similar problems. They both take the designer out the design head space since writing software or cutting paper require different skills than designing a game. This pulls designers away from the actual design itself and into thinking about cutting, gluing, or coding. An ideal toolset allows designers to focus entirely on the design.</p><p>All current prototyping tools completely lack archive-ability. Ideally a game prototype is reliably archivable. A designer must be able to explore an idea, put it away, and come back months or years later when something sparks their interest. Both systems fail in this goal. Paper prototypes require a complete accompanying rulebook to play. Because the rules are not enforced by the medium, it’s very easy to incorrectly play a paper prototype, especially when returning to it from some time away. Similarly, software rots over time: without constant maintenance, the life of a program is only a few years at best.</p><p>These problems are entirely unique to game design. No other artistic medium would allow these kinds of drains on their process. Writers and painters get to write and paint. They don’t have to learn an entirely separate skill before they’re able to create. Within minutes a musician can create a full listenable piece. At best a game designer can only fully test their idea after a few days.</p><h3>Why should you care</h3><p>I see this as a huge problem in game design. The medium of game design is weighed down by an anchor of poor process. Designers are unable to quickly and efficiently iterate on their idea which leeches the creativity and momentum of the entire process.</p><p>Also, these process problems scare away potentially outstanding game designers. It’s not hard to imagine someone filled with ideas, but lacking the technical programming skills necessary to implement them. This is a tragedy that will continue to slow the progress of game design until it is fixed.</p><p>Additionally, this lack of strong process slows the progress of games theory. I often read game design articles, claiming that games should do this, or games shouldn’t do that. But they almost never cite current games. That’s because it’s very difficult for designers to prove their theories. I can take years to build a game exemplifying your ideas. Again, this slows the entire medium. Game designers need a quicker iteration process if we want to increase the rate at which the games medium improves.</p><h3>Possible Solutions</h3><p>We’ve identified a problem. How are we going to fix it? Here are some solutions which have potential. These solutions help facilitate the strategy design process at the expense of games as software production. Thus these solutions are happy to sacrifice the typical software quality metrics for design expressiveness and iteration speed. The goal of these solutions is not a shippable piece of software but instead something different.</p><p>I’ve outlined those goals below. These metrics are ideals. Achieving every one of these with one tools is quite a difficult task, but it is important to be clear about what we want from our tools. Here are, what I think to be, the three most important metrics.</p><ul><li>Archivable<br>Designers must be able to archive what they create. They must be test out an idea, put it away for months or years, and open it up again to resume work. They must be able to do this with a minimal time cost. This means the tool must be future proof. Anything created in the tools must be able to live forever into the future (this isn’t as hard as it sounds).</li><li>Expressive <br>The tools must be light and simple yet powerful. Designers need to be able to quickly and simply express ideas of complexity. This means very little ‘boiler plate’ work.</li><li>Light <br>This tool should allow designers create games in an exploratory way: testing, modifying and deleting need to be done quickly and easily. This means the software must be quick and light. Designers should never be waiting for the tool to do something. The tool should always be waiting for the designer.</li></ul><p>Alright, we have some ideal metrics and we know the problems with our current tools. Lets look at some possible solutions. As a warning, the solutions below are quite technical. I’ll do my best to explain them in a way anybody can understand. I also omit further in-depth explanation because of the complexity.</p><h3>Big-library-o-code</h3><p>One solution is to simply write and package the code which is used most commonly. This would speed-up the design process as the designer would be writing less code. Ideally the designer would have a visual editor which allows them to connect different pieces of this library into something meaningful. This would be something like Unity except explicitly focused on the design iteration process while ignoring the production of shippable software.</p><p>This is the most straight forward solution but is far from perfect. This solution does not solve any of the archival issues since the designs are necessarily dependent on the library in which it was produced. The nail in the coffin here is the lack of expressiveness. The only features your design can include are ones which were already thought of and implemented. This solution would speed the design process, but it would strangle designer’s creativity, producing a lot of very similar games.</p><h3>GDL</h3><p>Another promising avenue is the Game Description Language (GDL). GDL is a language which can rigorously encode any set of rules. It was developed to entirely encapsulate a game in a way that could be played by an artificial intelligence. Below is an example of the Monty Hall door game written in GDL-II.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sZI0YG0gX4e7OcY-mx0wFg.png" /></figure><p>GDL has many advantages. Because of its mathematical roots, it has been proven to express all possible games. This provides a sound theoretical foundation which truly unleashes the designer’s creativity. The language is quite simple which keeps the cost of entry low.</p><p>Importantly, GDL is completely uninterested in the computing necessary to run the game. It only declares the rules of the game, not how the rules are to be implemented on a computer. It is up to an entire different piece of software to run the game. This means GDL is completely future proof and perfectly archivable. A designer just needs to keep the GDL rules and the game will always be playable at any point in the future.</p><p>GDL has one big issue: it’s too minimal. Even creating something small requires a very large amount of writing — designing even basic board games in GDL is prohibitively difficult. The language is too verbose and too rigorous. It might be possible to solve this by extending the language with common design patterns but I think this gap is too large: So many new features are required that the result would effectively just be a different language.</p><h3>ASP and Event Calculus</h3><p>Another possible solution, which has a lot of promising research to behind it, is Answer Set Programming (ASP). Put simply, ASP is a programming paradigm focused on logically declaring problems in a way that can be solved by another program. Event Calculus is then built on top of that, and it allows for these problems to change through time. All of that is very complicated, and unfortunately, using this kind of prototyping tool would require knowledge of these complications.</p><p>This solution has many of the same problems as GDL, though not to the same degree. Expressing a game in ASP can come somewhat easily (though not as easily as I would want) however; there is no ASP language designed for games so they all have many unnecessary annoyances. For example, the language has no concept of time, or turns, so every line of the program has an annoying variable to manage the passage of time. ASP is a step in the right direction, but it is not quite there entirely.</p><h3>New Language</h3><p>Currently, there is no good solution. Though that isn’t surprising since nothing has been designed with games ruleset iteration in mind. I think the best solution is to design a new language with all the good and none of the bad. Obviously that is easier said than done. Complications always arise — however; it certainly seems possible.</p><p>This new language would be designed specifically for strategy game ruleset development. It would have an AnsProlog like semantics and syntax, but it would drop much of what is irrelevant, instead adopting features helpful for designers. Finally this new language would be declarative, so it will also be archivable. I’m happy to say I’m in the early stages of designing such a language. I don’t yet have anything demonstrable, but I’m making progress based on the goals and direction outlined above.</p><h3>Process</h3><p>Creating a new programming language sounds like the best solution, and that’s because I’ve defined it as such. There are no good tools for strategy games ruleset design. All current solutions are fraught with problems and none of them come close to achieving the metrics I outlined above. Part of the reason is because nobody has set out to specifically fix this problem. All current solutions are too abstract and general — game designers need a focused solution aimed at solving only their problems.</p><p>I think this is a big problem with the industry, yet it isn’t talked about enough. Game designers desperately need improved design tools. Such a tool would empower game designers, their ideas, and the entire industry.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e392ebf73af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scythe: Interactive Design Analysis]]></title>
            <link>https://medium.com/@ryanrothweiler/scythe-interactive-design-analysis-a6c7d1afe24e?source=rss-ed46986eca49------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6c7d1afe24e</guid>
            <category><![CDATA[scythe]]></category>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[game-design]]></category>
            <category><![CDATA[board-games]]></category>
            <dc:creator><![CDATA[Ryan Rothweiler]]></dc:creator>
            <pubDate>Wed, 08 Feb 2017 06:51:48 GMT</pubDate>
            <atom:updated>2017-02-08T06:51:48.787Z</atom:updated>
            <content:encoded><![CDATA[<p>Scythe is the kickstarter success of last year and after launch its been received with almost universal praise. It’s difficult to find any negative reviews of the game and it currently sits as the sixth best game ever on BoardGameGeek. Reviewers are quick to speak highly of its beautiful art and grand world building. Yet after multiple playthroughs, I have mixed feelings on the game. I agree with the general consensus on the production. The art itself is worth the price of entry as its beautiful and unique. Remove all the gamey components and the board itself is a masterful piece of work. Yet Scythe is a board game, not a painting, so it should be judged primarily on the merit of its interactive systems. How do those systems hold up? Not anything special.</p><p>Negative reviews of the game speak about small issues, but I have a few much larger issues that I think have been overlooked. This article will not go into extreme depth on the mechanics, as this is intended for those who have played the game, though many of the criticisms are rooted in fundamental values of interactive systems. So even if you haven’t played the game, I still encourage you to continue reading.</p><p>My core issue with the game is this. While the art is grand, the interactive merit is lacking. The large amount of discrete mechanics leaves the game with significant width but minimal depth. The game doesn’t appreciate player randomness and this puts players in frustrating positions. And the game ends with multiple annoying rounds of calculation, something that always sours my interest.</p><h3>No appreciation for player randomness</h3><p>Nearly every review of Scythe contains words about its combat. Reviewers commonly say the threat of combat adds just as much as the combat itself. Before playing Scythe, this concept interested me, but after playing I realize the threat of combat is actually just randomness. The game seems to expect players to predict where combat might take place but this isn’t entirely possible.</p><p>Players cannot exactly predict their opponents behavior. Attacks happen suddenly and randomly, so any territory control strategy can be busted apart in one turn by a random attack from an opponent. The problem is not in the success or failure of opponent prediction, instead the issue is that players don’t have time to react to their opponent’s choice. Opponents are nearly always at your doorstep, one turn away from attacking you. The game doesn’t give players the resources to fully defend against all attacks for the entirety of the game, so eventually players must open themselves up to an attack. Whether that attack comes or not is effectively random. Unexpected combat can cost the loser three or four turns, which is not terribly detrimental to a players strategy, but it is harsh enough to be more than just a little annoying.</p><p>Since adjacency is a fluid concept, player prediction is made worse. There are six tunnels on the board which are all considered adjacent. And all factions have unique movement abilities, so only some factions consider certain tiles adjacent, and only specific factions can move across specific rivers, and which factions can move across which rivers is unique for every player. Combine all of that and you realize that an attack can come from nearly any direction at any time. Since adjacency is different across players, it’s even more laborious to calculate all the movement possibilities of your opponents. There is a card supplied which helps alleviate the calculation of these movement possibilities but it doesn’t solve the problem entirely since there are so many total possibilities to consider and defend against. It’s impossible to fully protect yourself through the entire game. This scarcity would be great if players weren’t required to prioritize against a random force.</p><p>While a random combat encounter might not entirely ruin a players strategy, it is often enough to make them lose. Scythe is a game of efficiency and even a few lost turns can be very frustrating. Combine this with the randomness of attacks and combat can be very angering. Since a player could’ve easily prevented or defended against the attack, this leaves players thinking “Well if I would’ve known that was going to happen I would’ve defended against it”. Players require a buffer zone before randomness effects them otherwise the randomness can decide the outcome of the game. This low buffer randomness is also quite annoying as it feels your choice and strategy has been stolen away from you. Scythe does not seem to acknowledge the effective randomness, instead expecting players to predict their opponents enough to accommodate the randomness into a strategy. Something that isn’t possible.</p><h3>A poor end game</h3><p>This is a more minor issue but it is annoying enough to speak about. The final few turns are a boring exercise in simple arithmetic. Since players can choose when to end the game, the optimal behavior in the final few turns is to spend minutes after every move and calculate the total score; something that is not quick or simple. If you’re winning then end the game on your next turn. If you’re not winning then stall the game out. Since every other player is also doing the same then the player who is winning will end the game as soon as possible. There is no end game tension. This is such a big problem that the rule book even explicitly outlaws this behavior, but really that hardly helps. The mechanics practically require such calculation behavior so the shoehorned rule doesn’t do anything to relieve the issue. Strategy games should slowly build in tension until the final move. In Scythe tension builds toward late mid game which it then drops off a cliff since the final few turns are filled with a string of mundane calculations.</p><h3>Discrete mechanics</h3><p>My core criticism of Scythe is its disconnected list of mechanics. Scythe has a very large rule book detailing every mechanic but sadly each is sanctioned off into its own corner. The mechanics aren’t one big happy family instead more just acquaintances which merely exchange simple pleasantries. This means the game does not reach the depth necessary to justify its large rule set.</p><p>Let us begin by looking at the workers. The entirety of mechanics and consequences around workers are thus. They can produce resources depending on the board hex they are sitting on. The more workers you have on the board the more expensive it is to produce. Workers cost the attacker popularity if involved in combat. That’s it. There is nothing else to explain with workers. There is very little nuance involved surrounding workers, and little nuance is added when combined with other mechanics. Workers can never get bonuses though the game and they never fluctuate in value depending on the game state. They simply exist to produce resources and the specifics of that production are static and non-reactionary.</p><p>Each mechanic added should increase nuance and the possible interesting decisions of the other existing mechanics. The worker mechanic, and nearly every mechanic in the game, fails to do this.</p><p>Combat is terribly flat as well. So flat that it could be fully automated without player choice. The same with the mechanics around combat cards. Players can use actions to get combat cards, and then can use the cards during combat to increase their chances of winning. Because combat cards are entirely hidden, they are intended to give a bit of randomness to combat. But players rarely risk the chance of failure, they simply wait to fight until they have a sure victory. Thus combat cards add nothing to the game. If players didn’t wait to attack until victory was sure, then the cards would make combat quite random, and that’s a problem also. Combat is either random or completely flat, it never provides interesting decisions.</p><p>Continuing to look at mechanics, mechs are also terribly flat. They can carry workers and participate in combat. Combat and workers don’t involve many interesting decisions, so this leaves mechs feeling sad and strategically boring. Each mech unlocks a special power which every mech can utilize, and this adds some interesting decisions on the player mat, but this provides nothing interesting to the mechs themselves.</p><p>The objective cards are further proof of the shallow pool of game states which results in the disconnected mechanics. Each player has two hidden objectives, which nudges the player down one very specific strategic road. The cards serve to explicitly reward very niche scenarios which otherwise would be pointless. Ideally, the game mechanics themselves would be more elegantly crafted to allow for a large variety of naturally interesting game states. Objective cards don’t add to the decision space, they are simply a way for the designer force states which the rest of the game argues is worthless. As is common with Scythe, objective cards don’t interact with any other mechanics. What if you got a bonus to production when you completed an objective? Or maybe different objective cards give different rewards? Or maybe don’t hide objective cards so players can better predict the movements of their opponents and attempt to stop them? The necessity of the objective cards to add game variety is precisely because the other mechanics fail to create anything interesting.</p><p>The player mats are the most interesting mechanic in the game, specifically because they combine, merge, and edit the other mechanics. Actions change in value over the course of the game. And since actions have costs and are bundled in pairs, players are encouraged to plan their next few moves to squeeze maximum efficiency out of each turn. Unfortunately the entirety of the games replayability comes from the asymmetric factions, player mats and starting positions. Combine this with the generally flat mechanic space and you end up with a list of disconnected and explicit strategies for each faction and player mat pair. This creates a meta game of memorizing each strategy for each faction player combination and then just playing that strategy when you play that specific combination.</p><p>Nearly every mechanic in Scythe only barely succeeds to acknowledge its neighbors. The mechanics don’t branch and intertwine with the other existing mechanics. They don’t combine into a boiling pot of interesting nuanced strategic depth. They are happy to sit flat on the surface hardly speaking with each other.</p><h3>Conclusion</h3><p>Scythe is a fun thematic experience. It is satisfying to move the well-made pieces around on a such a beautiful board. I’m glad to have it in my collection and I will happily play it in the future. But the mechanics of the game are deceptively shallow. They give the appearance of depth because of their mature theming and extreme polish, but this polish reveals the fundamental lack of strategic nuance. The mechanics are so disconnected that they seem to entirely ignore each other. Scythe is the kind of game you get when you lack a substantial and interesting mechanical core. All of the fat was trimmed off the game in an attempt to get right into the meat, unfortunately there was little meat, only a skeleton with some absolutely stunning tattoos.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6c7d1afe24e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>