Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
alxm2024
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
alxm2024
Commits
88daa8e9
Commit
88daa8e9
authored
Jan 31, 2025
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kółko i krzyżyk - obsługa klawiatury numerycznej
parent
38501062
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
kolko_i_krzyzyk.cpp
dzien12/kolko_i_krzyzyk.cpp
+9
-9
No files found.
dzien12/kolko_i_krzyzyk.cpp
View file @
88daa8e9
...
@@ -43,15 +43,15 @@ void wypisz_plansze() {
...
@@ -43,15 +43,15 @@ void wypisz_plansze() {
bool
ustaw_pole
(
char
ruch
,
char
co_ustawic
)
{
bool
ustaw_pole
(
char
ruch
,
char
co_ustawic
)
{
int
x
,
y
;
int
x
,
y
;
switch
(
ruch
)
{
switch
(
ruch
)
{
case
'
q'
:
x
=
0
;
y
=
0
;
break
;
case
'
Q'
:
case
'q'
:
case
'7'
:
x
=
0
;
y
=
0
;
break
;
case
'
w'
:
x
=
0
;
y
=
1
;
break
;
case
'
W'
:
case
'w'
:
case
'8'
:
x
=
0
;
y
=
1
;
break
;
case
'
e'
:
x
=
0
;
y
=
2
;
break
;
case
'
E'
:
case
'e'
:
case
'9'
:
x
=
0
;
y
=
2
;
break
;
case
'
a'
:
x
=
1
;
y
=
0
;
break
;
case
'
A'
:
case
'a'
:
case
'4'
:
x
=
1
;
y
=
0
;
break
;
case
'
s'
:
x
=
1
;
y
=
1
;
break
;
case
'
S'
:
case
's'
:
case
'5'
:
x
=
1
;
y
=
1
;
break
;
case
'
d'
:
x
=
1
;
y
=
2
;
break
;
case
'
D'
:
case
'd'
:
case
'6'
:
x
=
1
;
y
=
2
;
break
;
case
'
z'
:
x
=
2
;
y
=
0
;
break
;
case
'
Z'
:
case
'z'
:
case
'1'
:
x
=
2
;
y
=
0
;
break
;
case
'
x'
:
x
=
2
;
y
=
1
;
break
;
case
'
X'
:
case
'x'
:
case
'2'
:
x
=
2
;
y
=
1
;
break
;
case
'
c'
:
x
=
2
;
y
=
2
;
break
;
case
'
C'
:
case
'c'
:
case
'3'
:
x
=
2
;
y
=
2
;
break
;
default:
default:
cout
<<
"Nieznany ruch
\n
"
;
cout
<<
"Nieznany ruch
\n
"
;
return
false
;
return
false
;
...
...
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