Spekulant
Spekulant
Explore posts from servers
CC#
Created by Spekulant on 10/17/2023 in #help
❔ xUnit tests
what if my normal code writes thing in the console if the data is wrong
17 replies
CC#
Created by Spekulant on 10/17/2023 in #help
❔ xUnit tests
Is there any way that i can fix this
17 replies
CC#
Created by Spekulant on 10/17/2023 in #help
❔ xUnit tests
something like this
17 replies
CC#
Created by Spekulant on 10/17/2023 in #help
❔ xUnit tests
but i would like to use the first method beucase i want use test cases when there are
ADJSKFNADFOBFABSDbasdnfasbfd
aisbdgfa9dnfan
ba9sdbfas9dnf
sa9dnfa

dab9sdgasbg
absd9fa
bab9
ADJSKFNADFOBFABSDbasdnfasbfd
aisbdgfa9dnfan
ba9sdbfas9dnf
sa9dnfa

dab9sdgasbg
absd9fa
bab9
17 replies
CC#
Created by Spekulant on 10/17/2023 in #help
❔ xUnit tests
No description
17 replies
CC#
Created by Spekulant on 10/17/2023 in #help
❔ xUnit tests
No description
17 replies
CC#
Created by Spekulant on 10/17/2023 in #help
❔ xUnit tests
No description
17 replies
CC#
Created by Spekulant on 10/17/2023 in #help
❔ xUnit tests
I probably found the error the var story does not have EOF thing at the end that is causing an issue
17 replies
CC#
Created by Spekulant on 10/16/2023 in #help
❔ ✅ whitespaces are doing me dirty
!close
13 replies
CC#
Created by Spekulant on 10/16/2023 in #help
❔ ✅ whitespaces are doing me dirty
i have yo use char by char read because otherwise the space and time will be too much
13 replies
CC#
Created by Spekulant on 10/15/2023 in #help
❔ ✅ SreamReader vs. TextReader
!close
10 replies
CC#
Created by Spekulant on 10/15/2023 in #help
❔ ✅ SreamReader vs. TextReader
thanks
10 replies
CC#
Created by Spekulant on 10/15/2023 in #help
❔ ✅ SreamReader vs. TextReader
by char will do
10 replies
CC#
Created by Spekulant on 5/1/2023 in #help
❔ basic maze solver but there is a bug that it moves how it should not
https://pastebin.com/5KrpdbR2
so the input:
10
6
XXXXXXXXXX
X....X...X
X....X...X
X.X..X.X.X
X.X.>..X.X
XXXXXXXXXX

first number is the width second the height the > is the player and he has 4 rotations <>V^

i want to print every time he moves

the algorithm is that

if{there is a wall to his right}
if{there is a wall infron}
turn left
else{ go forward}
else{
turn to the right
count the step
move forward}

XXXXXXXXXX
X....X...X
X....X...X
X.X..X.X.X
X.X..>.X.X
XXXXXXXXXX

XXXXXXXXXX
X....X...X
X....X...X
X.X..X.X.X
X.X...>X.X
XXXXXXXXXX

XXXXXXXXXX
X....X...X
X....X...X
X.X..X.X.X
X.X...^X.X
XXXXXXXXXX

XXXXXXXXXX
X....X...X
X....X...X
X.X..X^X.X
X.X....X.X
XXXXXXXXXX
first 4 steps
so the input:
10
6
XXXXXXXXXX
X....X...X
X....X...X
X.X..X.X.X
X.X.>..X.X
XXXXXXXXXX

first number is the width second the height the > is the player and he has 4 rotations <>V^

i want to print every time he moves

the algorithm is that

if{there is a wall to his right}
if{there is a wall infron}
turn left
else{ go forward}
else{
turn to the right
count the step
move forward}

XXXXXXXXXX
X....X...X
X....X...X
X.X..X.X.X
X.X..>.X.X
XXXXXXXXXX

XXXXXXXXXX
X....X...X
X....X...X
X.X..X.X.X
X.X...>X.X
XXXXXXXXXX

XXXXXXXXXX
X....X...X
X....X...X
X.X..X.X.X
X.X...^X.X
XXXXXXXXXX

XXXXXXXXXX
X....X...X
X....X...X
X.X..X^X.X
X.X....X.X
XXXXXXXXXX
first 4 steps
6 replies
CC#
Created by Spekulant on 5/1/2023 in #help
❔ basic maze solver but there is a bug that it moves how it should not
6 replies
CC#
Created by Spekulant on 5/1/2023 in #help
❔ basic maze solver but there is a bug that it moves how it should not
$paste
6 replies
CC#
Created by Spekulant on 4/3/2023 in #help
❔ forloops upon forloops
@Task.WhenAll just checking if you found somehting beucase i didnt come up with anything
125 replies
CC#
Created by Spekulant on 4/3/2023 in #help
❔ forloops upon forloops
125 replies
CC#
Created by Spekulant on 4/3/2023 in #help
❔ forloops upon forloops
not the tests but i failed at implementation
125 replies
CC#
Created by Spekulant on 4/3/2023 in #help
❔ forloops upon forloops
i tried implementing it but failed
125 replies