Join Anton Delsink for an in-depth discussion in this video Update chess model, part of Object Oriented Programming with C#.
- [Instructor] Okay, so now that we have a first draft…of our Apply method with a game engine in the class, Chess,…we'll actually apply a move to an existing board.…There are three things missing at this stage.…We haven't initialized the board,…so we don't actually have any pieces on it.…We've created an empty chess piece class,…so we haven't really dealt with what that will be for…and what it'll represent, and we haven't actually dealt…with what the coordinate system would be for the chessboard.…So let's start in the board,…and we go and see here the indexer.…
We ask for a column and a row, and now we have to be clear.…In chess, people expect the columns to be letters…A through H, and the rows to be one through eight,…and so those are going to be the numbers…people expect to give us, and yet our board…on line five is an array that's zero indexed,…and so I will make the assumption that the board itself…will translate the numbers for us, so minus one,…and minus one, and again, here, minus one,…and minus one, so the board will interpret one through eight…
- 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.