Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TP-CleanCode-Names
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SoftwareCrafters
masterclasses
TP-CleanCode-Names
Commits
a9a0bbe3
Commit
a9a0bbe3
authored
Sep 04, 2017
by
Alexandre Meyer
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.soat.fr/craftsmanship/TP-CleanCode-Names
parents
3be394b1
6f242131
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
116 additions
and
1 deletion
+116
-1
.gitignore
.gitignore
+4
-0
Michelle_Name_Choice_Algo_Rot.java
Michelle_Name_Choice_Algo_Rot.java
+6
-1
PartsOfSpeech-Clean.txt
PartsOfSpeech-Clean.txt
+0
-0
PartsOfSpeech-Rot.txt
PartsOfSpeech-Rot.txt
+0
-0
README.md
README.md
+0
-0
ScopeRule-Clean.txt
ScopeRule-Clean.txt
+0
-0
ScopeRule-Rot.txt
ScopeRule-Rot.txt
+0
-0
pom.xml
pom.xml
+41
-0
src/main/java/io/soat/names/disinformation/game/Michelle_GameOfLife_communicate_intent_Rot.java
...tion/game/Michelle_GameOfLife_communicate_intent_Rot.java
+18
-0
src/main/java/io/soat/names/disinformation/game/Michelle_GameOfLife_communicate_intent_clean.java
...on/game/Michelle_GameOfLife_communicate_intent_clean.java
+21
-0
src/main/java/io/soat/names/disinformation/game/Michelle_GameOfLife_communicate_intent_cleaner.java
.../game/Michelle_GameOfLife_communicate_intent_cleaner.java
+26
-0
No files found.
.gitignore
0 → 100644
View file @
a9a0bbe3
/target/
/.idea/
/cleancode.iml
Michelle_Name_Choice_Algo_Rot.java
View file @
a9a0bbe3
package
io.soat.names.meaningfulcontext
;
/**
* On veut afficher un message de stats récapitulatif suivant la valeur "count" passée en paramètre
*
* @see : Clean code page 28.
*/
public
class
Michelle_Name_Choice_Algo_Rot
{
private
void
printGuessStatistics
(
char
candidate
,
int
count
){
private
void
printGuessStatistics
(
char
candidate
,
int
count
)
{
String
number
;
String
verb
;
String
pluralModifier
;
...
...
Sepehr-
PartsOfSpeech-Clean.txt
→
PartsOfSpeech-Clean.txt
View file @
a9a0bbe3
File moved
Sepehr-
PartsOfSpeech-Rot.txt
→
PartsOfSpeech-Rot.txt
View file @
a9a0bbe3
File moved
README.md
deleted
100644 → 0
View file @
3be394b1
S
epehr-S
copeRule-Clean.txt
→
ScopeRule-Clean.txt
View file @
a9a0bbe3
File moved
S
epehr-S
copeRule-Rot.txt
→
ScopeRule-Rot.txt
View file @
a9a0bbe3
File moved
pom.xml
0 → 100644
View file @
a9a0bbe3
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
io.soat
</groupId>
<artifactId>
cleancode
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<packaging>
jar
</packaging>
<name>
cleancode
</name>
<url>
http://maven.apache.org
</url>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
4.12
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<source>
1.8
</source>
<target>
1.8
</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
src/main/java/io/soat/names/disinformation/game/Michelle_GameOfLife_communicate_intent_Rot.java
0 → 100644
View file @
a9a0bbe3
package
io.soat.names.disinformation.game
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
Michelle_GameOfLife_communicate_intent_Rot
{
private
List
<
int
[]>
theList
;
public
List
<
int
[]>
getThem
(){
List
<
int
[]>
list1
=
new
ArrayList
<>();
for
(
int
[]
x
:
theList
)
if
(
x
[
0
]
==
4
)
list1
.
add
(
x
);
return
list1
;
}
}
src/main/java/io/soat/names/disinformation/game/Michelle_GameOfLife_communicate_intent_clean.java
0 → 100644
View file @
a9a0bbe3
package
io.soat.names.disinformation.game
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
Michelle_GameOfLife_communicate_intent_clean
{
private
static
final
int
STATUS_VALUE
=
0
;
private
static
final
int
FLAGGED
=
4
;
private
List
<
int
[]>
gameBoard
;
public
List
<
int
[]>
getFlaggedCells
()
{
List
<
int
[]>
flaggedCells
=
new
ArrayList
<>();
for
(
int
[]
cell
:
gameBoard
)
if
(
cell
[
STATUS_VALUE
]
==
FLAGGED
)
flaggedCells
.
add
(
cell
);
return
flaggedCells
;
}
}
src/main/java/io/soat/names/disinformation/game/Michelle_GameOfLife_communicate_intent_cleaner.java
0 → 100644
View file @
a9a0bbe3
package
io.soat.names.disinformation.game
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
Michelle_GameOfLife_communicate_intent_cleaner
{
private
List
<
Cell
>
gameBoard
;
public
List
<
Cell
>
getFlaggedCells
()
{
List
<
Cell
>
flaggedCells
=
new
ArrayList
<>();
for
(
Cell
cell
:
gameBoard
)
if
(
cell
.
isFlagged
())
flaggedCells
.
add
(
cell
);
return
flaggedCells
;
}
public
class
Cell
{
private
boolean
flagged
;
public
boolean
isFlagged
()
{
return
flagged
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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