Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Questions tagged [simulation]

For challenges involving simulation.

Filter by
Sorted by
Tagged with
17 votes
1 answer
5k views

Background Piet is an esoteric stack-based programming language in which programs are images meant to resemble abstract paintings. To keep the challenge from being unnecessarily complex, you will not ...
12 votes
5 answers
631 views

In Super Auto Pets, players build teams of animals that face off in battles to the death unconsciousness. Each animal has an Attack and Health value, and combat occurs in iterations of the following ...
EmilyR's user avatar
  • 1,533
21 votes
25 answers
3k views

Introduction You're making a robot that can navigate a set of books of varying heights. It can climb books and jump off books, but if the distance is too big it will stop to prevent damage. To figure ...
Ginger's user avatar
  • 6,098
3 votes
2 answers
237 views

Summer Klerance turned in her term assignment for this challenge. Her professor was miffed (but also amused) when he overheard a disgruntled classmate of Summer's saying she got her answers by ...
8 votes
7 answers
535 views

Summer Klerance, a senior in college, is what her teachers refer to as GBL*. Students in her probability class have been assigned individual problems to work on and turn in as part of their final ...
14 votes
12 answers
2k views

The ball game is a game in which a number of players sit together in a circle. Each player is first assigned a number \$ n \,ドル either 1, ...
10 votes
8 answers
1k views

What is elementary cellular automata? Since I'm not sure I'll be able to explain this so that somebody who has never heard of this is able to understand, I'm giving an explanation from https://...
10 votes
3 answers
312 views

Introduction I have some ASCII cars that have velocity and direction. Their velocity is represented by their number. If a car is <> then it has stopped. For ...
15 votes
8 answers
1k views

An Izhikevich neuron is a simple yet quite effective model of a biological neuron, designed for use in a discrete time-stepping simulation. In this golfing challenge, you will be implementing this ...
PhiNotPi's user avatar
  • 29.3k
19 votes
2 answers
3k views

Introduction The Boids Algorithm is a relatively simple demonstration of emergent behavior in a group. It has three main rules, as described by its creator, Craig Reynolds: The basic flocking model ...
2 votes
6 answers
383 views

The 52 week challenge is a way to save money. For example, Week 1, you save 1ドル.00. Week 2 you save 2ドル.00, and it continues through the year, adding one more dollar to each week’s savings goal. By Week ...
38 votes
7 answers
3k views

Inspired by this. Background The evil farmer has decided to burn your wheat field down in order to drive up the prices. To ensure total destruction, he has also soaked your field in gasoline. Even ...
30 votes
14 answers
7k views

Disclaimer: The story told within this question is entirely fictional, and invented solely for the purpose of providing an intro. I am an evil farmer, and to drive up the price of wheat in my area, ...
12 votes
4 answers
401 views

TL;DR: Given an array of chars and a robot in a starting position of the array, write an algorithm than can read a string with movements (F for "go forward", ...
Charlie's user avatar
  • 13k
29 votes
9 answers
2k views

Suppose we have a matrix like this: 11111 12221 12321 12221 11111 This matrix represents a terrain, and each cell represents a portion of terrain. The number in ...

15 30 50 per page
1
2 3 4

AltStyle によって変換されたページ (->オリジナル) /