ArticleslgStudy

computer science

Zillions of Games

Zillions of Games is a computer 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 Zillions of Games rather than just read about it. In short: Zillions of Games is a commercial general game playing system developed by Jeff Mallett and Mark Lefler in 1998. The game rules are specified with S-expressions, Zillions rule language.

Zillions of Games — main illustration
Zillions of Games — illustration

Key takeaways

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

Reference excerpt

Zillions of Games is a commercial general game playing system developed by Jeff Mallett and Mark Lefler in 1998. The game rules are specified with S-expressions, Zillions rule language. It was designed to handle mostly abstract strategy board games or puzzles. After parsing the rules of the game, the system's artificial intelligence can automatically play one or more players. It treats puzzles as solitaire games and its AI can be used to solve them.

Scripting language The scripting language of Zillions of Games uses S-expressions. The rules are stored in a text file with the extension ".zrf" (Zillions rules file). The users can create their own ZRF files and make the AI of Zillions of Games play their newly-created game. The definition of games usually contains the following pattern:

Game title. One ZRF can contain more than one game and game title allows the user to select a certain game. Description, history and strategy of the game. This is a text which is shown to the user on demand to explain game rules, history and to give general gameplay advice. Players. This is a list of player names used in the game. For example, for chess it would be White, Black. The player name is used in some further places, for example in initial position or game goal definitions. There could be just one player (e.g. for puzzles), two or more. Turn order This specifies the order of moves made by the players. In the example above, the player X starts, the player O moves and then the whole sequence repeats. The definition of turn-order can be more complex, for example for balanced double-move chess it would be: (turn-order White repeat Black Black White White), which specifies the following order of moves: White, Black, Black, White, White, Black, Black, White, White, etc.

Board definition. This sections specifies geometry of the playing board, separate positions of the board and connections between them. The board definition in the example above first specifies a bitmap image to be used for the board. A 2-dimensional board is defined using pixel coordinates from the bitmap. The definition ("top-/middle-/bottom-" (0 112)) specified notations to be used for rows as well as an offset in pixels between rows. The text notation is used in move list, as well for saving the played game into ".zsg" (Zillions saved game) file. The connections between board position is specified in (directions ...) statement. The example above defines four directions: n (north) - one step up, e (east) - one step right, nw - diagonally up-left and ne - diagonally up-right. The directions are used in move definitions as well as in game goal definitions. Piece definition. Defines pieces used in the game, their names, and how they move. In the example above one piece is defined, Man, which can be dropped on any empty position of the board. Two bitmap images for X and O players are also specified. Board setup. Specifies initial position of the game. The example above defines that the board is empty initially and each side has 5 pieces off the board, which can be dropped. Goal of the game. Condition when one of players wins or when draw occurs. In Tic-Tac-Toe, the win condition (3-in-a-row) is defined as relative piece configurations, using directions n, e, ne, and nw from board definition.

Implemented games Zillions of Games is so called because of its potential to play a very large number of user-programmed games. The system is shipped with over 300 games and puzzles. These include a lot of popular board games, such as Alquerque, Fox and geese, Go, Gomoku, Jungle, Halma, Nim, Nine men's morris, Reversi, Tafl and Tic-tac-toe. The package includes many checkers variants, for example Russian and Turkish Checkers. Besides standard FIDE chess, Zillions of Games contains many national chess variants such as shogi, xiangqi, janggi, as well as a number of popular chess variants like Ultima, Extinction chess, Losing Chess, shatranj, Berolina chess, Grand Chess and others. It also include some puzzles, such as 15-Puzzle, Towers of Hanoi, eight queens, and a variety of Solitaires. Not long after it came to market in late 1998, users of Zillions of Games began to program new games and puzzles for it, creating many of them themselves. Two large collections of Zillions Rules Files (ZRFs) soon began to appear. One was at the Zillions of Games website, and the other was at the Chess Variant Pages website. The former collected together every kind of ZRF, whereas the latter focused on ZRFs for chess variants. As of November 2017, the ZILLIONS interface had 2,577 ZRF's, created by 462 ZRF authors, and the Chess Variant Pages collection had 794 ZRF's of chess variants. The games programmed by the users include such games as 4D Tic-Tac-Toe, FreeCell, Rubik's Cube, Teeko, Mancala, Alice Chess, Chess960, Hexagonal chess, Star Trek Tri-Dimensional Chess and Sokoban. Besides various games and puzzles, there are also educational ZRFs, such as the cellular automata Game of Life, a calculator, and some Turing machine simulations.

Uses Zillions of Games can be used for the following:

Playing any of the games or puzzles that come with it. Playing any of the free games and puzzles that have been programmed for it by users. Playing games with remote users through the internet or a dialup connection. Playing games by emailing ZSG files back and forth. Programming it to play new games and puzzles. Using it as a development tool for the creation of new games and puzzles. Testing new games for drawishness and other qualities by having Zillions play them against itself. Solving puzzles or making sure that newly created puzzles can be solved. Creating diagrams that can be cut out of screen captures.

… excerpt ends here. Continue reading the full article.

Illustrations

Zillions of Games: Board definition in Zillions of Games. This picture shows all positions in the defined game and their corresponding names. Also all specified directions from the middle-middle position are shown.
Board definition in Zillions of Games. This picture shows all positions in the defined game and their corresponding names. Also all specified directions from the middle-middle position are shown.

Worked examples

Example 1 — a first encounter with Zillions of Games

Start with the simplest possible case. Write down what Zillions of Games claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer 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 Zillions of Games 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 Zillions of Games 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 Zillions of Games

In research
Zillions of Games appears in computer 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 Zillions of Games 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
Zillions of Games is common in secondary-school and first-year university syllabi. It links to neighbouring topics Chess software, Multiple-game video board games, Video game development software, so understanding it makes those chapters shorter.
In everyday life
Look for Zillions of Games 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 “Zillions of Games” →

How to study Zillions of Games in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Zillions of Games 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 Zillions of Games out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Zillions of Games in simple terms?

Zillions of Games is a commercial general game playing system developed by Jeff Mallett and Mark Lefler in 1998. The game rules are specified with S-expressions, Zillions rule language.

Why does Zillions of Games matter?

Because it connects several computer 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 Zillions of Games?

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 Zillions of Games.

Tags

  • Chess software
  • Multiple-game video board games
  • Video game development software
  • Video game engines

Keep exploring