ArticleslgStudy

science

Gridwars

Gridwars is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Gridwars rather than just read about it. In short: Gridwars (aka GRID WARS) was a programming contest announced in November 2002 by Engineered Intelligence (EI). The competition was devised to promote EI's product called CxC (a parallel programming language) introduced the same day.

Key takeaways

  • Gridwars belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Gridwars to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Gridwars from memory before moving on to harder problems.

Reference excerpt

Gridwars (aka GRID WARS) was a programming contest announced in November 2002 by Engineered Intelligence (EI). The competition was devised to promote EI's product called CxC (a parallel programming language) introduced the same day. Gridwars was also announced in selected forums and through personal invitations. Four contests were held in total: in February 2003, in June 2003 (Gridwars II), in November 2003 (Gridwars Interactive), and in April 2004 (Gridwars III). EI was founded by Matt Oberdorfer; in the late 2005 EI discontinued CxC and announced a new product called "I/O accelerator". In the early 2006 EI changed name to Gear6 and replaced Gridwars front page with the announcement of discontinuation. Shortly after the web site www.gridwars.com was shut down.

Game concept and core rules The game is played on a board aka "battlefield"—orthogonal grid of given size drawn on a torus (thus opposite edges of the field are in contact). Each cell of the battlefield can be either empty or owned by one of several codes competing for the cells of the battlefield. The code which manages to take over the battlefield or owns most cells after a specified number of cycles is the winner. The original terminology used by EI was peculiar in that it referred to the competing codes as "the warriors" and to the cells as "processors" of a virtual computing grid (hence "the battle for processors") capable, however, of "firing bullets" at each other. The game proceeds in turns (cycles). At the beginning of the game, each code owns one cell. Every cycle, codes are executed for cells they own. As it happens, framework program supplies the codes with some data: who are the cell's eight immediate neighbors (by warrior number, 0 for free cell) and its own warrior number. Based on this data, warriors can "fire three bullets" at one/two/three of its 8 neighbors. Gridwars II introduced a principal extension of original rules: warriors could now return 32-bit word, called communication variable or comvar for short, which framework program would supply to each of its 8 neighbors during the next cycle of battle execution. After all of the cells made their shots, control program evaluates how many bullets in total arrived at every cell from the neighboring warriors, i.e. cells executing the same code. Whichever warrior sends more bullets at the cell (and not less than three in total), takes it over. In case of a tie, cell ownership remains the same. In principle, the game can be played without a computer: on a board whose size is small enough to make it fun. Players can use private boards or paper to specify shooting directions for all of their cells and then show the shots and update the board together. Alternatively, firing directions can be specified on the main board in the cell-by-cell manner (using matches, for example), opponents taking turns.

Winners With the exception of Gridwars Interactive, top three finishers in each competition were honored in EI's press releases and received prizes provided by Hewlett-Packard who sponsored Gridwars (pocket PCs, digital cameras, printers, and 5-node Xeon cluster to the winner of Gridwars III). Gridwars 1. Scott Balaban (Cleveland, Ohio) 2. John Ours (Cleveland, Ohio) 3. Robert Macrae (London, UK) Gridwars II 1. Vasiliy Gromov (Moscow, Russia) 2. Mark Wenig (Maryland, USA) 3. Robert Macrae (London, UK) MEGA GRID WARS league of Gridwars II 1. Robert Macrae (London, UK) 2. Paul Klinge (VTT, Finland) 3. Shanming Loh (Singapore) Gridwars III 1. Mark Wenig (Greenbelt, Maryland, USA) 2. Paul Klinge (VTT, Finland) 3. Chris Mueller (Katy, Texas, USA)

In the interests of objectivity, table below provides additional details with regard to participation.

There were reports in the forum that certain codes from a prior competition were resubmitted for participation by EI, and available information of this kind is taken into account.

Press and media The event that attracted most attention from the press was, by far, Gridwars II. In particular, the final battle between programs written by Vasily Gromov and Mark Wenig: New Scientist: "Gladiator-style 'wars' select out weak programs" BBC Russian: "NASA programmer was bitten by Cobra" Russian TV channel news: "Our Vasa has beaten NASA"

Footnotes

Worked examples

Example 1 — a first encounter with Gridwars

Start with the simplest possible case. Write down what Gridwars claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Gridwars before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Gridwars ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Gridwars

In research
Gridwars appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Gridwars in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Gridwars is common in secondary-school and first-year university syllabi. It links to neighbouring topics Programming contests, so understanding it makes those chapters shorter.
In everyday life
Look for Gridwars outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Gridwars” →

How to study Gridwars in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Gridwars means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Gridwars out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Gridwars in simple terms?

Gridwars (aka GRID WARS) was a programming contest announced in November 2002 by Engineered Intelligence (EI). The competition was devised to promote EI's product called CxC (a parallel programming language) introduced the same day.

Why does Gridwars matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Gridwars?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Gridwars.

Tags

  • Programming contests

Keep exploring