This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
13.01-Projeto
58 lines (52 loc) · 3.54 KB
/
13.01-Projeto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
////////////////////////////////////////////////////////////////////////
------------------------------------------------------------------------
ROBÔ
------------------------------------------------------------------------
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
-> máquina virtual
-> estado: - posição } afetam o jogo
# cristais }
Cada robô tem, pelo menos, as características acima. O principal é a
máquina virtual. O estado de cada robô NÃO DEVE ser alterado pelo
próprio robô, mas sim pela Arena.
O robô é uma casca, sobre a máquina virtual. Podemos também ter um
certo 'tempo de espera', que nos leve a esperar após uma chamada
de sistema.
////////////////////////////////////////////////////////////////////////
------------------------------------------------------------------------
ESQUEMA PARA O PROJETO
------------------------------------------------------------------------
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
.-----------------------. ..----------------------------------..
| ROBOT | || ARENA ||
|=======================| ||==================================||
| int health; | || .________________________. ||
| int cristals; | || pos1 | i1 | i2 | i3 | i4 | i5 | ||
| | || pos2 | j1 | j2 | j3 | j4 | j5 | ||
| RVM virtualMachine; | || time | t1 | t2 | t3 | t4 | t5 | ||
| .-------------------. | || rob. | R1 | R2 | R3 | R4 | R5 | ||
| | Stackable DATA; | | || |____|____|____|____|____| ||
| | .-----. | | || .---. ||
| | | | | | || | A | .------------------------. ||
| | |-----| | | syscall || | R | |⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ | ||
| | | SYS :---:-:-------> || | E | | ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ | ||
| | '-----' | | || | N | |⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ | ||
| | String PROG; | | || | A | | ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ | ||
| | .-------------. | | || | | |⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ | ||
| | | | | | || | C | | ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ | ||
| | |-------------| | | return || | T | |⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ | ||
| | | Cristal | | | <-------::-: R | | ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ | ||
| | '-------------' | | || | L | |⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ ⬡ | ||
| | int PC; | | || '---' '----------||------------' ||
| | Stackable RAM; | | ''------------------||--------------''
| | ... | | ||
| '-------------------' | /¨¨¨¨\ } ||
'-----------------------' / \ } ||
| robot? | }------':
| tipo | }-------'
\ / }
\____/ }
Cada hexágono é um objeto
com as informações de o que
há sobre eles (cristais, robôs,
etc.)