Click here to Skip to main content
15,880,796 members
Home / Discussions / C#
   

C#

 
GeneralRe: Searching for a bitmap on my screen Pin
Eddy Vluggen3-Feb-20 10:25
professionalEddy Vluggen3-Feb-20 10:25 
AnswerRe: Searching for a bitmap on my screen Pin
Gerry Schmitz3-Feb-20 4:11
mveGerry Schmitz3-Feb-20 4:11 
GeneralRe: Searching for a bitmap on my screen Pin
Atlaskor3-Feb-20 5:21
Atlaskor3-Feb-20 5:21 
QuestionHow to read specific field value when using LINQ to object to fetch data Pin
Mou_kol31-Jan-20 10:05
Mou_kol31-Jan-20 10:05 
AnswerRe: How to read specific field value when using LINQ to object to fetch data Pin
ZurdoDev31-Jan-20 10:47
professionalZurdoDev31-Jan-20 10:47 
AnswerRe: How to read specific field value when using LINQ to object to fetch data Pin
Gerry Schmitz31-Jan-20 10:49
mveGerry Schmitz31-Jan-20 10:49 
AnswerRe: How to read specific field value when using LINQ to object to fetch data Pin
Eddy Vluggen31-Jan-20 11:05
professionalEddy Vluggen31-Jan-20 11:05 
QuestionHow to make a "dungeon"(kinda of a small labyrinth) using devc and matrix Pin
Member 1472865028-Jan-20 19:44
Member 1472865028-Jan-20 19:44 
soo im gonna try this once again
i have a job which is called "a dungeon"

The game assumes the existence of a map of the dungeon where the hero / heroine is, and
you want to escape from. The map is created by the programmer and the player does not know the
map.
It is known that the dungeon has 5 divisions. On the map, each of the dungeon divisions is
encoded by a sequence of 5 integers (INSWE) and a String.
The first of the five integers, I, is the numerical identifier of the division.
The remaining four integers N S W E represent the identifier of the division you are going to
the hero / heroine when advancing in one of the four cardinal directions (North, South, West, East).
If the value is zero it means that this direction has no output; 99 indicates the
dungeon (and game over)
after looking at it carefully and suggestion from my colleagues and teacher is the use of a mtraix to make the map (but not show it to the player) and some of my problems atm is kinda of connecting the matrix i have generated/choose and the change of room indidcationg that for example "on this room there is 2 exist one to the east and the other to the north"

in case you need some code to understand im not asking without even trying

s1 = {1,0,0,2, 3}
s2 = {2,0,0,0,1}
s3 = {3,0,4,1,5}
s4 = {4, 3,0,99,0}
s5 = {5,0,0,3,0}

this is the technicall map of the dungeon where you start in S1 which would be room 1 and would have the warning of a exit to the west(s2) and to the east(s3) as in the whole thing is

5 integers (INSWE)
I indicator - in this case it would be 1
N - north which in this situation is 0 indicating there is no pathway in that direction and its just a wall
S- south and see commentray above
W-west where they move from S1 to room 2 S2 where they will be presented with a new number of directions

------------------------------------------------------------------------------

if (S1[1] =/= 0) => "north"
if (S1[2] =/= 0) => "sul"
this is a system i considered for the case of making it easy on myself for the map like
in matrix S1[1] or matrix [1][1] if the value is not 0 well you can move in that direction
and of course i would most likelly put a else on the end of each just so in case it was a 0 they would give the same message saying to the player you cnat go in that direciton pls choose another option
---------------------------------------------------
so this is my basic ideas and hope any of you can help me/understand what i want to do
AnswerRe: How to make a "dungeon"(kinda of a small labyrinth) using devc and matrix Pin
OriginalGriff28-Jan-20 20:12
mveOriginalGriff28-Jan-20 20:12 
QuestionRe: How to make a "dungeon"(kinda of a small labyrinth) using devc and matrix Pin
ZurdoDev31-Jan-20 10:48
professionalZurdoDev31-Jan-20 10:48 
QuestionFileSystemWatcher Question Pin
Kevin Marois28-Jan-20 6:07
professionalKevin Marois28-Jan-20 6:07 
AnswerRe: FileSystemWatcher Question Pin
Eddy Vluggen28-Jan-20 7:21
professionalEddy Vluggen28-Jan-20 7:21 
AnswerRe: FileSystemWatcher Question Pin
Gerry Schmitz28-Jan-20 7:57
mveGerry Schmitz28-Jan-20 7:57 
AnswerRe: FileSystemWatcher Question Pin
Luc Pattyn28-Jan-20 10:05
sitebuilderLuc Pattyn28-Jan-20 10:05 
GeneralRe: FileSystemWatcher Question Pin
Gerry Schmitz29-Jan-20 3:38
mveGerry Schmitz29-Jan-20 3:38 
AnswerRe: FileSystemWatcher Question Pin
Nathan Minier29-Jan-20 5:35
professionalNathan Minier29-Jan-20 5:35 
QuestionExpando object - creating a dynamic class and reading the property types in a unit test Pin
Simon_Whale27-Jan-20 9:45
Simon_Whale27-Jan-20 9:45 
QuestionRe: Expando object - creating a dynamic class and reading the property types in a unit test Pin
Eddy Vluggen27-Jan-20 11:11
professionalEddy Vluggen27-Jan-20 11:11 
AnswerRe: Expando object - creating a dynamic class and reading the property types in a unit test Pin
Simon_Whale27-Jan-20 12:43
Simon_Whale27-Jan-20 12:43 
GeneralRe: Expando object - creating a dynamic class and reading the property types in a unit test Pin
Eddy Vluggen27-Jan-20 14:31
professionalEddy Vluggen27-Jan-20 14:31 
QuestionRegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 2:31
Lupu5R3x24-Jan-20 2:31 
AnswerRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Pete O'Hanlon24-Jan-20 3:38
mvePete O'Hanlon24-Jan-20 3:38 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 4:03
Lupu5R3x24-Jan-20 4:03 
AnswerRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Gerry Schmitz24-Jan-20 5:00
mveGerry Schmitz24-Jan-20 5:00 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 6:11
Lupu5R3x24-Jan-20 6:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.