Recommend this page to a friend!
  Classes of Leonardo Mauro Pereira Moraes   TapAI   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: TapAI
Study user interactions with a tap on screen game
Author: By
Last change: Update of
Date: 2 years ago
Size: 1,620 bytes


Class file image Download


Links: Online Example and JS Classes


This is a quick reaction game in which the player must click as fast as possible on the "tap" screen.

The game is designed in SVG (HTML5) responsively to fit any size of screen. Designed for web browsers to desktop, mobile phones and tablets.

After 10 matches the result of the game appears and a CSV file with all the game information is saved.

The examples debug the player performance in Web Console of browser.


This game has been developed with the purpose of studying human-game interaction. In this game, it is possible to manipulate any information about the game in order to interact and to study the behaviors and actions of the player. In addition, this game can be used to develop a database of players and their game states (at the end of the game a CSV file is generated).


  • Normal Game
  |__ game.js - mechanics of the game
  |__ layout.js - SVG HTML layout
  |__ logic.js - difficulty/score logic
  |__ toFile.js - export the results to CSV file
  |__ index.html - normal game

  • Edited Game
  |__ AIlogic.js - game logic (with PCG heuristic elo-based)
  |__ index-intelligent.html - edited game


Also look ~