This resources page showcases how to shatter and make cry the game 'Brain Age: Train Your Brain In Minutes A Day' for TASing use. The U ROM is used. - xy2_

## Introduction

Brain Age needs no introduction for many. The mode used and the most abusable one by far is the calculations x20/x100 mode. The aim of this resources page is to be an assistance in making Brain Age your personal image editing tool.
For the purpose of keeping this page short, the term "optical character recognition", which Brain Age uses to transform inputs to answers, will be simply nicknamed 'recon' in the rest of this page.
For transforming any Brain Age valid pictures you draw into input, this is not the right page. Please check this thread and micro500's Brain Age Tools to get started.

### Basic concepts

The most basic concepts to grasp are how Brain Age recons input and transforms it into answers. There are four basic concepts: segments, models, keypoints and edges.
The concept of a segment is a line drawn without interrupting input (lifting the stylus). Each segment has a start and an end: your initial input, and your last input without lifting the pen. As such, in normal play, a segment would be a line drawn without interruption.
Every single input of your segment is a keypoint. The start and end of your segment are special kinds of keypoints: they are edges. These keypoints and edges assemble to create what is called a model, which is then assigned a specific number based on the model and given an answer.
To the right is an example of the simplest model in the game: the 1. The 1 is made with a straight line, with edges being positioned at the start and the end of the segment. Note that edges from different segment do not go togheter to make a model.
Note that every single model has two edges. A model, no matter what, cannot be made with only one edge: this is the reason the out of bounds drawing glitch exists. The full list of models is here (see the pictures.)
How does Brain Age define which model it recons is first based on the position of your current edges. From two edges, it will then try to assemble a model based on the most convenient set of keypoints it can find. If multiple ways to assemble a model are found, Brain Age will prioritize:
1. Bias (single digit only, see section 'Bias')
2. The biggest model it can find within the allocated edge placement
3. If there are multiple segments that generate models with about the same size, the models with the last drawn segments are prioritized {to investigate..}
No matter how long is your segment, or how skewed it is, Brain Age will always try to find a model given these set conditions.
If you have multiple segments and if too many models from different segments overlap, Brain Age will simply refuse the whole answer and give an '?'.

## Bias

Bias is a 'recovery mechanic' that allows very skewed drawings to be successfully recon as the correct answer. In a single-digit answer, when there are multiple models possible with varying sizes, Brain Age will suddenly, from the detected models, prioritize the model with the right answer. If the question was a 4 and the question is '1+3', Brain Age will try to detect a reasonably sized 4 model (this won't work with too small models) and register it successfully.

### Long and short answers

There are two types of answers in this game: short, which appear instantanely (you only have to pause for 1 frame for these) and long, where you have to wait over 45+ frames for the answer to appear. Long answers only happens when two conditions are met:
1. Bias is present (so a single digit answer)
2. You write an wrong answer
OR
@ You trigger an '?'
This is the most consistent way to trigger long answers (not that you'd want to do it..) Long answers are very problematic when manipulating, because you can't effectively manipulate answers to appear without waiting a lot, rendering manipulation useless.

## Input

{still some uncertain info: this is a theory, but it's the most accurate one on the way the game handles input..} To avoid having to remember a ton of input data for an answer, the game remember three specific inputs: the first edge of each segment (as in, the first input of a segment), the last edge of each segment and every single keypoint of the segment you're currently drawing, up to a certain limit which is unknown. Once this is done, Brain Age will remember the relevant keypoints then discard irrelevant input. This phenomenon can be most observed with making a lot of segments: after a while, since the game has so much to 'remember', it will not accept any more input and the stylus will make no more noise.

## The Trinity of Major Glitches

Now that we know how Brain Age handles input, the next step is breaking it. This means drawing whatever you want and manipulating it into whatever answer you want, even manipulating multiple answers before getting the right one with enough practice. Before explaining how these glitches work, one thing needs to be understood. There are two areas in the touch screen: the drawable field or the inbounds section; and the edges of the field or out of bounds.

### Edge breaking

If you do an input starting from an edge back in bounds, the game will not be able to draw the line you just drew, because its initial coordinate is out of bounds. However, this input will be registered! This does not make the input appear on screen, but makes the input register. Such technique is known as edge breaking, and is a fundamental technique for manipulation. However, it has two main drawbacks:
1. You can only edge break for 1 frame, after which you are forced to go back in bounds to 'prepare' for your next edge break.
2. Input that is done out of bounds is still registered.
An example of edge breaking is illustrated to the right. The out of bounds is colored in red. Note that the last input exists, but is not visually displayed..
Edge breaking is the all-around glitch: it can be used while drawing to draw in a single segment without having more than 2 edges (or 4 edges if you have a dual-digit answer); placing your second edge in such a way that you manipulate the resulting answer of your first segment (this segment will be your entire drawing, thanks to edge breaking); and creating a second segment for further manipulation (if you want to create targeted displayed answers on the topscreen before the right one, for example.)
The recommended use of edge breaking is as follows:
1. Draw your entire drawing in 1 segment using edge breaking
2. After drawing, use edge breaking to create extra keypoints to form the model you want, then place the second edge in the corresponding position
For more complicated manipulation, you have almonst full control. As you draw more segments, manipulation gets harder and harder, but you can draw at least 3 different displayed answers before it can get really complicated.

### Godspots

We have stated earlier that any input that even touches out of bounds will be not registered. Abusing this mecahnic again, there is two very specific spots where you can draw without the drawing showing up: in the row at X:246 and column at Y:182 (if DeSmuMe is tilted sideways.) This has two very clear and distinct advantages over edge breaking: first off, you can use godspots for more than one frame, and second, you can start a segment within a godspot with no problem, since it will not be displayed; something that is not doable with edge breaking alone. With edge breaking alone, you have to hide the first input of another segment in the drawing. The obivious drawback of godspots are that.. they are limited to two spots.
The picture shows the location of the godspots.

### Out of bounds drawing

Out of bounds drawing is a glitch derived from edge breaking. It is edge breaking but starting your segment out of bounds. As we stated before, a model needs two edges from the same segment for a model to be recon; however, just starting out of bounds completely nullifies the existence of the first edge of your segment, allowing to draw visually on the screen, without any input of your entire segment being recon. After long debate, the TASvideos community unianimously agrees for this glitch to be banned in all future Brain Age runs, as it is nothing more than very subtle trickery.

### '?'

? answers appear when Brain Age succesfully recons a full number (instead of a modification of an existing number on screen) while there is another number on screen. For example, drawing 9 then a 5 with another segment will give an '?'. In low segment drawings, this usually does not happen.

## Minor tricks

### Judging delay

After having finished drawing the current segment you are drawing, Brain Age will start the recon process. This can be delayed infinitely by simply holding your last input.

### Submit cancel

In the date of birth section after having finished the tutorial Calculations x20, finishing your current input then hitting Submit 2 frames after will skip the judging part of your drawing, allowing you to draw whatever you want in the date of birth fields.

GameResources/DS/BrainAgeTrainYourBrainInMinutesADay last edited by xy2_ on 1/11/2016 7:17 PM