Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wordle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
repos.tanguy.cavagna
sequencial programming
wordle
Commits
77e99a63
Commit
77e99a63
authored
2 years ago
by
tanguy.cavagna
Browse files
Options
Downloads
Patches
Plain Diff
End turn fixes
parent
bb49203e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
main.c
+1
-1
1 addition, 1 deletion
main.c
tool/tool.c
+1
-1
1 addition, 1 deletion
tool/tool.c
wordle/wordle.c
+2
-2
2 additions, 2 deletions
wordle/wordle.c
with
4 additions
and
4 deletions
main.c
+
1
−
1
View file @
77e99a63
...
...
@@ -34,4 +34,4 @@ int main(void) {
// printf("%s\n", w);
// return EXIT_SUCCESS;
// }
\ No newline at end of file
// }
This diff is collapsed.
Click to expand it.
tool/tool.c
+
1
−
1
View file @
77e99a63
...
...
@@ -263,4 +263,4 @@ void save_computed_matches(possibility_t **matches) {
int
get_remaining_bank_count
()
{
return
remaining_bank_count
;
}
char
**
get_remaining_bank
()
{
return
remaining_bank
;
}
\ No newline at end of file
char
**
get_remaining_bank
()
{
return
remaining_bank
;
}
This diff is collapsed.
Click to expand it.
wordle/wordle.c
+
2
−
2
View file @
77e99a63
...
...
@@ -66,7 +66,7 @@ void handle_controls(int key) {
current_try_letter_id
=
0
;
// Place correct letters from previous in the current one
if
(
current_try_id
<
TRIES_COUNT
)
{
if
(
current_try_id
<
TRIES_COUNT
&&
strcmp
(
tries
[
current_try_id
-
1
],
get_answer
())
!=
0
)
{
for
(
int
i
=
0
;
i
<
WORD_LENGHT
;
i
++
)
{
if
(
patterns
[
current_try_id
-
1
][
i
]
==
CORRECT
)
tries
[
current_try_id
][
i
]
=
tries
[
current_try_id
-
1
][
i
];
...
...
@@ -269,4 +269,4 @@ void launch_game() {
destroy_game
();
}
bool
game_finished
()
{
return
_game_finished
;
}
\ No newline at end of file
bool
game_finished
()
{
return
_game_finished
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment