Join Anton Delsink for an in-depth discussion in this video Invoke ChessMove.Try, part of Object Oriented Programming with C#.
- In the previous video, we've created…the try method, to try and action and move,…as a change in the state of our game.…Let's go back to the unit tests.…Here we have chess or try, this is where we are…going to try and modify the state of our game,…by creating a move object that describes…the before an after state for a particular move.…I'll set some bright points, first on line 95,…here where game moves dot add is.…Then I'll go bold my code, control shift b,…and if I didn't make any typing mistakes,…we'll got to test zero three,…inside the bold selected texts.…
So, we made it through the try method,…let's see what we got, the initial move was…G1 F3, now let's look at our result.…I'll select the word result, right click,…and then go to quick watch.…Now, if you've selected the whole word,…you get it in the expression at the top.…If you made a selection error, you can just click…re-evaluate after you fix it,…but let's take a look at our result variable.…It has before and after properties,…describing the chess board before…
- Abstract classes
- Processing text with StreamReader
- IEnumerable and yield return
- Windows Forms controls
- Windows Forms with and without the designer
- Adding, organizing, and testing forms
- Creating classes
Skill Level Intermediate
What you should know1m 10s
1. Theory vs. Practice
2. Examples from .NET
3. Examples from Windows UI
4. Examples from Board Games
5. Examples from the Web
Next steps1m 13s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.