I'll interpret any downvotes on this question as "no", upvotes as "sure". Please note: "no" is a perfectly acceptable answer. I could ask on Arqade, but the answers I'm looking for aren't "grind dire rats until you can upgrade to Excalibur", they're "you can save a JMP by checking for zero instead of negative, and here's a way to consolidate two variables and save memory". It is programming, for sure, but I'm unsure about whether it's on-topic because it's not a "problem I face in real life", it's a video game. I'd like to ask some questions about how to optimize certain solutions (effectively: briefer code or faster execution). The little guy is the ALU, the carpet is main memory, and the program is listed on the right. The game is essentially an introduction to the fundamentals of programming, at the assembly level, aimed at novices, or kids, or OCD weirdos like me who are intrigued by the idea of making asm programming fun (weird thing is they did it). There's a Steam/iOS game called " Human Resource Machine", where you solve levels and advance by programming in a proprietary assembly language. For example, if inbox is 3, outbox should be 6, because 3+2+1 = 6.Update: The comments and answers here made me realize there's a more general question to be asked, so I asked about video-game language questions in general on Meta.SE. Objective: For each thing in the inbox, outbox the sum of itself plus all numbers down to zero. This code will complete the following optimisation challenges: Neither Year 25 - Cumulative Countdown Objective: For each zero terminated string in the inbox, send to the outbox only the smallest number you've seen in that string. This code will complete the following optimisation challenges: Speed only Year 23 - The Littlest Number When you reach the end of a string (marked by a zero), put your sum in the outbox. Objective: The inbox is filled with zero terminated strings! Add together all the numbers in each string. This code will complete the following optimisation challenges: Neither Year 21 - Zero Terminated Sum Don't worry about negative numbers for now. Objective: For each two things in the inbox, multiply them, and outbox the result. This code will complete the following optimisation challenges: Neither Year 20 - Multiplication Workshop Objective: For each number in the inbox, send that number to the outbox, followed by all numbers down to (or up to) zero. This code will complete the following optimisation challenges: Speed only Year 19 - Countdown But, if a number is negative, first remove its negative sign. Objective: Send each thing from the inbox to the outbox. This code will complete the following optimisation challenges: Neither Year 16 - Absolute Positivity Objective: Grab two things from the inbox, and put only the bigger of the two in the outbox. This code will complete the following optimisation challenges: Size only Year 14 - Maximization Room If they're equal, put one of them in the outbox. Objective: Get two things from the inbox. This code will complete the following optimisation challenges: Size and speed Year 13 - Equalization Room And then, subtract the 2nd from the 1st and put the result in the outbox. Objective: For each two things in the inbox, first subtract the 1st from the 2nd and put the result in the outbox. This code will complete the following optimisation challenges: Size only Year 11 - Sub Hallway Objective: Send only the zeros to the outbox. This code will complete the following optimisation challenges: Size only Year 9 - Zero Preservation Initiative Objective: Send all things that are not zero to the outbox. If you've got a better solution (that hits an optimisation challenge we missed), please drop it in the comments below! Year 7 - Zero Exterminator Right now, this guide only covers the main stages on the critical path up the elevator. Which is why we've put together this walkthrough, to help you get through a tricky level. You've even got a little memory space to play around with, drawn out as a grid on the floor.Īs such, the game can be very tricky for non coders. You are literally writing code, complete with loops and logic gates, to manipulate data. And developer Tomorrow Corporation doesn't even try to hide that fact, like Spacechem or Infinifactory does. Human Resource Machine is a game about programming.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |