Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C#

christine smith
christine smith
5,959 Points

Example code

I am just working on some of the suggested projects from the C# beginners course. I am creating a battleship game. It would be useful to see how others have programmed this game too. I learn best from seeing what others have done and then attempting to recreate it myself. Is there any example code anywhere?

1 Answer

Here is a great training guide in three parts for creating a battleship game: https://www.exceptionnotfound.net/modeling-battleship-in-csharp-introduction-and-strategies/

Complete game is available on GitHub: https://github.com/exceptionnotfound/BattleshipModellingPractice