TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Elara- A free open-source coding game built with Rust and WebAssembly

8 点作者 polymathist超过 1 年前
I&#x27;m excited to share a project that I&#x27;ve been working on mostly solo for the past year! It&#x27;s called Elara, and it&#x27;s a free open source game that teaches you how to code. You can play directly in your browser without downloading anything or creating an account. It&#x27;s targeted toward complete beginners, but if you already have some coding experience, there are optional bonus challenges to really test your knowledge and problem-solving skills. If you like code golf, some of the challenges will be right up your alley ;)<p>Under the hood, the backend&#x2F;core game logic is built with Rust and compiled to WebAssembly, and the frontend&#x2F;UI is in TypeScript and React. In-game, you write code in Rhai, a scripting language tightly integrated with Rust. I chose this architecture for a few reasons: it offers good performance for compiling and running user code, has important sandboxing&#x2F;safety guarantees like preventing infinite loops, and means the entire game can run in-browser without the need for any servers (aside from just serving static files). Keeping costs low was really important since the game is 100% free and I would like to keep it that way. Check it out and let me know what you think! I&#x27;ll be checking back here periodically to answer any questions.<p>The full source code is available on GitHub: <a href="https:&#x2F;&#x2F;github.com&#x2F;albrow&#x2F;elara">https:&#x2F;&#x2F;github.com&#x2F;albrow&#x2F;elara</a>.

4 条评论

daltont超过 1 年前
I had very similar idea about 13 years and it festered for years due to lack of time and fact it was originally implemented in Scala + Swing.<p>The concept is similar user must write code to solve problems involving a &quot;rover&quot; on a grid.<p>I took some time to make a ScalaJS + HTML version recently, but it still in perpetual alpha-alpha status. The language I invented is minimal and a bit esoteric. Not really a teaching language. It very primitive compared to Elara.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;daltontf&#x2F;coderover-js">https:&#x2F;&#x2F;github.com&#x2F;daltontf&#x2F;coderover-js</a><p><a href="https:&#x2F;&#x2F;daltontf.github.io&#x2F;coderover.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;daltontf.github.io&#x2F;coderover.html</a>
fabioberger123超过 1 年前
Wow, this visual programming interface really helps kids viscerally experience the power of programming. Well done!
soroushjp超过 1 年前
Super cool resource for middle and high school students learning to code! I wish this existed when I was in school. Will definitely be sharing it with kids and even older folks wanting to learn the basics of code :)
acm46超过 1 年前
Very cool! Wish I had something like this when I learned to code.