Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: Making charts with pdfsharp Pin
Mol4ok27-Oct-14 17:09
Mol4ok27-Oct-14 17:09 
GeneralRe: Making charts with pdfsharp Pin
Richard Deeming28-Oct-14 2:12
mveRichard Deeming28-Oct-14 2:12 
GeneralRe: Making charts with pdfsharp Pin
Mol4ok28-Oct-14 3:24
Mol4ok28-Oct-14 3:24 
GeneralRe: Making charts with pdfsharp Pin
Gerry Schmitz27-Oct-14 22:35
mveGerry Schmitz27-Oct-14 22:35 
GeneralRe: Making charts with pdfsharp Pin
Mol4ok28-Oct-14 2:11
Mol4ok28-Oct-14 2:11 
GeneralRe: Making charts with pdfsharp Pin
Gerry Schmitz28-Oct-14 9:45
mveGerry Schmitz28-Oct-14 9:45 
QuestionExpression to Check for a String Value in All Properties of a Type Pin
Agent__00727-Oct-14 1:42
professionalAgent__00727-Oct-14 1:42 
AnswerRe: Expression to Check for a String Value in All Properties of a Type Pin
Eddy Vluggen28-Oct-14 9:09
professionalEddy Vluggen28-Oct-14 9:09 
GeneralRe: Expression to Check for a String Value in All Properties of a Type Pin
Agent__00728-Oct-14 17:24
professionalAgent__00728-Oct-14 17:24 
GeneralRe: Expression to Check for a String Value in All Properties of a Type Pin
Eddy Vluggen29-Oct-14 8:57
professionalEddy Vluggen29-Oct-14 8:57 
AnswerRe: Expression to Check for a String Value in All Properties of a Type Pin
Alaric_28-Oct-14 10:22
professionalAlaric_28-Oct-14 10:22 
GeneralRe: Expression to Check for a String Value in All Properties of a Type Pin
Agent__00728-Oct-14 17:26
professionalAgent__00728-Oct-14 17:26 
AnswerRe: How I Got it (Partially) Done Pin
Agent__00728-Oct-14 17:08
professionalAgent__00728-Oct-14 17:08 
Questioninherit a observablecollection Pin
cicill27-Oct-14 0:39
cicill27-Oct-14 0:39 
AnswerRe: inherit a observablecollection Pin
BillWoodruff27-Oct-14 1:50
professionalBillWoodruff27-Oct-14 1:50 
QuestionExtraction of data from excel to databae Pin
Member 1118244626-Oct-14 21:38
Member 1118244626-Oct-14 21:38 
AnswerRe: Extraction of data from excel to databae Pin
Pete O'Hanlon26-Oct-14 21:41
mvePete O'Hanlon26-Oct-14 21:41 
GeneralRe: Extraction of data from excel to databae Pin
Member 1118244626-Oct-14 21:58
Member 1118244626-Oct-14 21:58 
Questionsimple code for game Pin
cicill26-Oct-14 15:23
cicill26-Oct-14 15:23 
AnswerRe: simple code for game Pin
BillWoodruff26-Oct-14 16:32
professionalBillWoodruff26-Oct-14 16:32 
AnswerRe: simple code for game Pin
Mycroft Holmes26-Oct-14 19:20
professionalMycroft Holmes26-Oct-14 19:20 
AnswerRe: simple code for game Pin
Pete O'Hanlon26-Oct-14 21:38
mvePete O'Hanlon26-Oct-14 21:38 
When you think about it what you're trying to create is, effectively, just some minor manipulation inside a grid. Now, what you want to consider is how could you represent a grid? Perhaps with a 2-D array. Then, you need to think about what the rules are. What you're trying to do is move tiles vertically or horizontally each time - that simplifies the code you have to write because you know that each operation affects only the rows or the columns.

So, you have rows and columns being manipulated. Let's consider the case where the user has swiped down so you're moving the rows down. Starting at the top row, when you move down this is always the way you'll work, start at the first element of that line of the array, and see if the first element of the line of the array below is the same number - if it is, you can increment it and blank out the current cell. You'll have to mark the cell that you just incremented so that you don't try to use it again - it's one increment per turn.

There, you have all the logic you need to get started. You should be able to extend this for swipe up and swipe left/right.
GeneralRe: simple code for game Pin
harold aptroot27-Oct-14 4:29
harold aptroot27-Oct-14 4:29 
QuestionData binding in wpf Pin
rajeevanagaraj25-Oct-14 2:16
rajeevanagaraj25-Oct-14 2:16 
AnswerRe: Data binding in wpf Pin
Mycroft Holmes25-Oct-14 13:32
professionalMycroft Holmes25-Oct-14 13:32 

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.