Join Anton Delsink for an in-depth discussion in this video Create class ChessMove, part of Object Oriented Programming with C#.
- [Narrator] Open the solution from your exercise files,…the solution named chess and add a new project.…This will be a class library project…and I will name it Chess Moves.…We'll rename the first class from class one,…of course I have two to Chess Moves.…Say yes to rename the class and so this is…where we will do most of the work.…Let's go back to the tests file.…
Scroll to the test 002 we had before…and let's copy the initial moves.…The list of strings that we use as input.…Ctr Z, and let's scroll to the end of this method…and create a new test method.…003 this time, and we'll place the same list of strings.…Now, this time, instead of creating a board…and moving pieces on the board,…what we will do is we will keep track of the moves…as a way to keep track of the progress of the game.…
And we'll build a model that is very move centric.…So what do I mean with, 'move centric'?…Let's take a look at how we would write down…the progress of a game.…We would typically have a sequence of moods.…And so I will create a new list of 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
C# Object-Oriented Programming Tips and Trickswith Jesse Freeman58m 39s 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.