what exactly is min and max used for in this game?

In this program, Min and max are used to make the value of a number at least 1 and at most 8.

So Max(1,Min(8,~~~→A

first finds and returns the smaller value of 8 or ~~~. So if ~~~ is more than 8, the return value (Let's call it B) is made to be 8 instead.

Likewise, Max returns the larger value of 1 the value B. If B is less than one, the return value is made to be 1, since 1 would be the maximum of the set {1,A}.

Essentially this does the same thing as:

```
:~~~ ;Some expression
:If Ans<1
:1
:If Ans>8
:8
:Ans→A
```

Though using less memory, and probably faster.

Fire Emblem for TI 83/4+ Progress: Demo: 75% Total: 40% Postponed indefinitely

The Cow might've been a little bit confusing (hopefully not misleading o.o), but I'll tell ya.

The min( command is used to find the lowest number in a list, where the max( command is used the find the highest number in the list. For example, "min({1,2,3})" will give you 1, and "max({1,2,3})" will return 3.

Combining the two essentially makes limits. "min(8,max(1,A→A" makes it so that the lowest A can be is 1, and the highest 8. Note that IT ISN'T "min(1,max(8,A→A" like The Cow posted, because that means if A is greater than 8 like 9, the command would be "min(1,max(8,9))" which would then be "min(1,9)" and return 1, instead of 8.

There's more info on these on the wiki if you want, just search them up. ^.^

This program does not work properly (I assume). Horizontal movement is fine, but there is not vertical movement, ie no user input is necessary aside from the first placement of the "paddle". I am investigating this as a noob and will attempt to fix it. Feel free to school me and optimise my solution.

TI CE what you did there

The program works perfectly fine. It can ovly only be wrong if there is a syntax/argument/domain error. Check your code again :)

```
:3→A:4→X
:1→S:1→T
:randInt(1,8→Y
:Repeat K=45 or X=1 and A≠Y
:ClrHome
:Output(A,1,"[
:Output(Y,X,"O
:getKey→K
:max(1,min(8,A+(Ans=34)-(Ans=25→A
:T(Y>1 and Y<8)+(Y=1)-(Y=8→T
:S(X>1 and X<16)+(X=1)-(X=16→S
:X+Ans→X:Y+T→Y
:End
:Pause "Game Over!
:ClrHome:"
```

𝔹𝕚𝕠_ℍ𝕒𝕫𝕒𝕣𝕕𝟙𝟚𝟠𝟚

`https://discord.gg/ec38pyz`

Okay so it said ERR:SYNTAX so then I did goto and it took me down to where it says :End. On another point I am wondering if in the code when it says this :3→A:4→X if the :4→X part is another code of line like I did it or if there is something I am missing

Okay so I found the problem, it was that I forgot to add :Repeat K=45 or X=1 and A≠Y I was wondering how to add in a new line of code because right now it just looks like this

:randInt(1,8→Y

:ClrHome

So I want to know how to add in a new line without having to delete the whole thing

I am struggling with the program my paddle won't move up. Pressing up sends the paddle downwards and pressing down does nothing. I have triple-checked the code and found no difference between it and the code on the page, excepting my replacement of,

`:randInt(1,8→Y`

with

`:int(8rand+1→Y`

I did this because my calculator is a TI-82 which doesn't have randInt (at least not where other models have it). Is this causing the problem? if not what line should I look at?

Turns out I managed even after checking three times to miss that I had skipped a portion of the line,

```
:max(1,min(8,A+(Ans=34)-(Ans=25→A
I wrote
:max(1,min(8,A+(Ans=25→A
or something like that
```