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
f6a308d2
Verified
Commit
f6a308d2
authored
Jun 08, 2021
by
Romain De Laage De Bellefaye
🌳
Browse files
Add ability to make infinite intervale in transition rules
parent
f965a175
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Fonction.cpp
View file @
f6a308d2
...
...
@@ -15,7 +15,7 @@ bool RegleAvecEtatCourant::verify(const Voisinage& voisins, const Cellule& cellu
delete
cellules
;
for
(
int
i
=
0
;
i
<
8
;
++
i
)
if
(
nb
[
i
]
<
seuilsMin
[
i
]
||
nb
[
i
]
>
seuilsMax
[
i
])
if
(
(
seuilsMin
[
i
]
!=
-
1
&&
nb
[
i
]
<
seuilsMin
[
i
]
)
||
(
seuilsMax
[
i
]
!=
-
1
&&
nb
[
i
]
>
seuilsMax
[
i
])
)
return
false
;
return
true
;
...
...
@@ -33,7 +33,7 @@ bool Regle::verify(const Voisinage& voisins, const Cellule& cellule) const {
delete
cellules
;
for
(
int
i
=
0
;
i
<
8
;
i
++
)
if
(
nb
[
i
]
<
seuilsMin
[
i
]
||
nb
[
i
]
>
seuilsMax
[
i
])
if
(
(
seuilsMin
[
i
]
!=
-
1
&&
nb
[
i
]
<
seuilsMin
[
i
]
)
||
(
seuilsMax
[
i
]
!=
-
1
&&
nb
[
i
]
>
seuilsMax
[
i
])
)
return
false
;
return
true
;
...
...
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