Join Anton Delsink for an in-depth discussion in this video Apply chess moves, part of Object Oriented Programming with C#.
- [Instructor] Now that we have a project that compiles…let's go and modify our Unit Test to actually go through…the steps of actually applying moves to the existing board,…and for that we'd have to implement quite a bit of code.…But let's first go to the Test menu,…and Windows, and open the Test Explorer,…and we'll find our test in here.…This is Test_002.…Right click, Run,…and it should fail because a lot has not been implemented.…And it happens to succeed…because the collection of moves is still empty.…
So the full reach actually doesn't execute,…there's nothing to do.…So let's add some chess moves to our game.…And we can represent them just as strings for now.…I will copy and paste a few moves from a famous game.…Control + V, and this is just strings.…And so all I'm saying is the collection of strings here…represent a move from one position,…G1 here, to F3,…as a brief notation…to basically by coordinates describe the starting position…and the end position of a particular piece.…
Now there are many different ways to represent chess moves.…
- 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.