Contents
1 Overview
Slice Eights is a card game of the shedding family with its own deck of 108 cards: four suits (Tomato, Cheese, Basil and Olive), numbers from 0 to 9 and the special cards Burnt, Spinning Dough, Pizza Box +2, Four Flavors and Family Pizza +4. An optional Cascade card per suit raises the deck to 112 cards.
Quick Match lets the player choose 1 to 3 rivals, three difficulty levels and six house rules. The Pizza Tour campaign has 24 tables across 4 places (Pizza Kitchen, Village Square, Food Truck Street and Alpine Pizzeria), each with its own rivals, rules and goal, up to three stars per table, and a boss table at the end of each place.
This download includes the ready-to-host game, the full editable source, this guide, a step-by-step customization guide and the third-party license notices. This edition has no multiplayer, online ranking or payments, and it does not connect to any external service.
2 Install the ready-to-play game
Only the contents of the game/ folder go to your web host.
- Extract the whole ZIP on your computer.
-
Open your hosting file manager or an FTP program and create a folder for the game, for example
slice-eights. -
Upload everything inside
game/to that folder, keeping the foldersassets,cssandsrcas they are. -
Open the folder's address in a browser, for example
https://yoursite.com/slice-eights/. - Tap or click the title screen to start. Browsers only play sound after a first tap.
index.html on your computer will not work: use a web host or the local server described in
the development section.
3 Requirements
- Any static web host that serves plain files, with HTTPS recommended.
- A current browser on desktop, Android or iPhone, with JavaScript enabled.
- No database, PHP, account or external service is needed to host the game.
- Node.js 26.13 or newer only if you want to run the optional tests, local server or build command.
4 How the game works
Each player starts with 7 cards (some campaign tables use 8 or 9). On your turn, play a card that matches the current suit, the number or the action of the top card, or draw from the deck. The first player with no cards left wins the round.
Tap a card to choose it and tap again, or press Play, to play it. A card can also be dragged to the pile. The Draw button or the deck draws a card. On desktop the same actions work with the mouse, and Esc opens or closes the pause.
Burnt skips the next player. Spinning Dough reverses the order of play. Pizza Box +2 makes the next player draw 2 cards, and with the Stack rule it can be answered with another one. Four Flavors picks the suit and Family Pizza +4 also makes the next player draw 4. Cascade throws out every card of its suit.
With two cards in hand, press SLICE! before playing; forgetting costs 2 cards. The winner scores the cards left in the rivals' hands: numbers are worth their value, action cards 20 and Four Flavors cards 50. In the campaign the three stars are for winning, the goal of the table and drawing few cards.
5 Interface
Marks on the screenshot
- Play: opens Quick Match
- Campaign: opens the Pizza Tour map
- How to play: four illustrated pages
- Stars collected in the campaign
- Sound: music and effects volumes
- Settings
Marks on the screenshot
- Rivals: tap a face to change it
- Number of rivals, 1 to 3
- Difficulty: Easy, Normal or Hard
- House rules for this match
- Start the match
Marks on the screenshot
- Current place of the tour
- Selected table, with its rival
- Boss table, with a padlock until it is unlocked
- Rivals, rule and what each star asks for
- Play the selected table
Marks on the screenshot
- Pause
- Cards left in a rival's hand
- Deck: tap to draw
- Pile: the card to match
- Current suit
- Your hand: playable cards are raised
- Draw a card
- Play the chosen card
Marks on the screenshot
- Points won in the round
- Stars earned at this table
- Next table, round or match
- Back to the menu
Marks on the screenshot
- Vibration on phones
- Less motion: fewer animations
- Language, 14 available
- House rules
Marks on the screenshot
- SLICE!: press it before your last card
- A rival that already called SLICE!
6 File map
The game/ folder is what you publish. The source/ folder holds the same editable
files plus the tests and tools.
game/ upload these contents to your web host
index.html entry page with every screen
css/ base, table, screens, panels and effects styles
src/main.js boot and screen flow
src/config.js tunable numbers and the save key
src/game/ rules, rivals, match and campaign
src/ui/ screens, cards, panels and effects
src/audio/sfx.js sound effects and music
src/lib/ save, languages, vibration, text fitting, frames
src/lib/locales/ the texts of the 14 languages
src/dev/scenes.js test scenes (local addresses only)
assets/img/ art (WebP): cards, characters, backgrounds, interface
assets/sfx/, assets/music/ sound effects and music (MP3)
assets/fonts/ fonts and their licenses
DOCUMENTATION.txt short note that points to this guide
source/ the same editable files, plus:
package.json, package-lock.json
README.md
tests/ rules robot and campaign tests
tools/build.mjs copies the game into dist/
tools/serve.mjs local preview server (npm run dev)
tools/check-node.mjs checks the Node.js version before the commands
documentation/index.html this guide (offline, 14 languages)
documentation/customization.html step-by-step customization guide
documentation/img/ the screenshots of the guides
DOCUMENTATION.html shortcut to this guide
CUSTOMIZATION.html shortcut to the customization guide
START-HERE.txt, CHANGELOG.txt
THIRD-PARTY-LICENSES/ font licenses
-
src/config.jsholds the tunable numbers: rival speed, animation timings, particles, vibration, audio mix and the save key. -
src/game/rules.jsholds the rules of the game, with no drawing or timers, andsrc/game/ai.jsholds the three rival levels. -
src/game/campaign.jsholds the 24 tables: rivals, level, rules, hand size, goal and draw limit. -
src/ui/holds the screens and effects,css/the layout andsrc/lib/locales/the texts of the 14 languages. -
assets/img/holds the art in WebP,assets/sfx/andassets/music/the sound in MP3 andassets/fonts/the fonts. -
src/dev/scenes.jsholds test scenes that only run on local addresses with?devtest. Players never see them.
7 Customize
Customization Guide (step by step, in English)
Art: replace a WebP file in assets/img/ with another of the same name and similar size. Cards
use assets/img/cards/, characters assets/img/avatars/ and backgrounds
assets/img/bg/.
Campaign: edit the list at the top of src/game/campaign.js. Each line is one table with its
rivals, level, rules, hand size, goal and draw limit.
Pace: the FEEL block in src/config.js sets how fast rivals play, how cards fly and
how many particles appear.
Texts: each language is one file in src/lib/locales/, and all of them use the same keys. Keep
the marks such as {...} inside the sentences.
Music and sound effects
Sound effects are MP3 files in assets/sfx/, and the list of names is SFX_IDS in
src/audio/sfx.js. Replace a file keeping its name.
Music is in assets/music/: menu.mp3, one loop per place (lagoa,
jardim, feira, chale) and the short vitoria.mp3 for
wins.
STORAGE_PREFIX in
src/config.js so their saved progress stays separate.
8 Languages
The interface comes in 14 languages: English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean and Chinese.
The game follows the browser language on the first visit, and the player can change it at any moment in Settings without losing progress.
To add a language, copy src/lib/locales/en.js, translate its values, then import it in
src/lib/locales.js and add its code to LANGS and LANG_NAMES.
9 Saved progress
- Stars, unlocked tables, volumes, language, house rules and settings are saved automatically in the browser's local storage.
- Clearing the browser's site data deletes this progress. There is no cloud save, and progress does not move between devices.
- All saved values use the prefix below, followed by the name of each value.
slice-eights.template.save.v1:
10 Install Node.js and use the tools
This part is optional. The ready game needs none of it; it is only for running the tests, previewing your edits and creating a new copy to upload.
1. Download the LTS version of Node.js (26.13 or newer) from https://nodejs.org/ and install it with the default options.
2. Open a new terminal: PowerShell on Windows, Terminal on macOS or Linux.
3. Check that both commands answer with a version number:
node --version
npm --version
4. Go to the extracted source folder, for example with cd path/to/source. It is
the folder that contains package.json.
5. Check the project and run the automatic tests:
npm ci
npm test
6. Preview the game while you edit it, at http://localhost:5270/ (press Ctrl+C to stop):
npm run dev
7. Create the copy to publish, which is written to the dist folder:
npm run build
8. Upload the contents of dist to your host, replacing the old files.
npm ci downloads nothing. If Windows blocks
npm, run npm.cmd instead or allow scripts for your user. If a command reports an
old Node.js version, install the LTS version and open a new terminal.
Test scenes
On your own computer only, this address opens the table in a ready state. Scenes go from 01 to 19 and are
listed in src/dev/scenes.js:
http://localhost:5270/?devtest&scene=04
11 Updates and cache
Clearing the cache without losing progress
Progress is stored in this browser, not on the server. Clearing cached images and files, or doing a hard reload, keeps your progress.
Computer: press Ctrl+F5 on Windows and Linux, or Cmd+Shift+R on macOS. Phone: in the browser settings, choose the option to clear cached images and files.
Do not choose cookies and site data, or clear site data, for the game's address. That deletes the local save.
12 Licenses
The game uses the fonts Fredoka and Nunito under the SIL Open Font License 1.1. Their notices are in
THIRD-PARTY-LICENSES/ and in assets/fonts/.
Japanese, Korean and Chinese use the fonts of the player's device. The project has no third-party code libraries.
13 Troubleshooting
-
Blank page: confirm that all of
game/was uploaded, includingassets,cssandsrc, and that you opened a web address, not a file on your disk. -
A script error about MIME type: your server must send
.jsfiles as JavaScript. Most hosts already do; if yours does not, ask them to enable it. - No sound: browsers only start audio after a tap or click. Check that the volumes in the sound panel are not at zero and that the phone is not silenced.
- An old version still appears after an update: clear the cache as explained in the section above.
- Progress disappeared: it is stored per browser and per address, so a new domain, a private window or cleared site data starts a new save.
14 Frequently asked questions
Does the game need a server or a database?
Can I change the cards, the characters and the backgrounds?
assets/img/ keeping their names. The Customization Guide shows
how.
Can I change the campaign or the difficulty?
src/game/campaign.js and the rivals' behavior is in
src/game/ai.js. Run npm test after changing the rules.
Can I embed it in my own site?
game/ contents and show that address in an iframe. Add
allow="fullscreen" if you want the full screen option to work.
Can I resell this template as it is?
15 Support
For help with this product or for custom development, write to the address below with your purchase code, the address where the game is hosted and a description of the problem.
Support request
When you write to support, include the browser and device, the game version, the page address, the steps that caused the problem, a screenshot and the first error shown in the browser console. Never send passwords, payment details or secret keys.