Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain De Laage De Bellefaye
LO21-projet
Commits
c785ac89
Commit
c785ac89
authored
Jun 07, 2021
by
Leon Do Castelo
Browse files
Add new file
parent
5c12109f
Changes
1
Hide whitespace changes
Inline
Side-by-side
sql/brians_brain.sql
0 → 100644
View file @
c785ac89
INSERT
INTO
automates
VALUES
(
"Brian's brain"
,
500
);
INSERT
INTO
EnsembleEtats
VALUES
(
1
,
"Brian's brain"
);
//
3
é
tats
:
on
,
dying
and
off
--> vivant (blanc), mourant (gris), mort (noir)
INSERT
INTO
Etats
VALUES
(
1
,
0
,
"vivant"
,
255
,
255
,
255
);
INSERT
INTO
Etats
VALUES
(
1
,
1
,
"mourant"
,
127
,
127
,
127
);
INSERT
INTO
Etats
VALUES
(
1
,
2
,
"mort"
,
0
,
0
,
0
);
//
utilise
un
voisinage
de
Moore
INSERT
INTO
regles_voisinage
VALUES
(
"Brian's brain"
,
2
,
1
);
//
r
è
gles
transition
:
//
cellule
devient
vivante
si
elle
est
morte
et
a
2
voisins
vivants
INSERT
INTO
regles_transition
VALUES
(
"Brian's brain"
,
2
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
2
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
2
,
0
);
//
cellule
vivante
devient
mourante
INSERT
INTO
regles_transition
VALUES
(
"Brian's brain"
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
0
,
1
);
//
cellule
mourante
devient
morte
INSERT
INTO
regles_transition
VALUES
(
"Brian's brain"
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
1
,
2
);
//
Grille
de
test
INSERT
INTO
reseaux
VALUES
(
0
,
"Grille 5*5 - Brian's Brain"
,
5
,
5
,
"Brian's brain"
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
2
,
0
,
0
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
2
,
0
,
1
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
0
,
0
,
2
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
0
,
0
,
3
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
2
,
0
,
4
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
0
,
1
,
0
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
2
,
1
,
1
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
2
,
1
,
2
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
0
,
1
,
3
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
0
,
1
,
4
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
2
,
2
,
0
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
2
,
2
,
1
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
2
,
2
,
2
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
0
,
2
,
3
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
2
,
2
,
4
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
2
,
4
,
0
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
2
,
4
,
1
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
2
,
4
,
2
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
2
,
4
,
3
);
INSERT
INTO
Cellules
VALUES
(
0
,
1
,
2
,
4
,
4
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment