Go Fish/PowerShell: Difference between revisions

m
Fixed syntax highlighting.
(Created page with "{{collection|Go Fish}} My attempt at a user-friendly Go-Fish. When I wrote the PowerShell playing cards as a pre-requisite to this code I didn't understand classes that well...")
 
m (Fixed syntax highlighting.)
 
Line 3:
My attempt at a user-friendly Go-Fish. When I wrote the PowerShell playing cards as a pre-requisite to this code I didn't understand classes that well. I ended up using a LOT of functions and global variables in that code. When I tried to use it as the base for the Go-Fish game it was gross, unorganized and I felt like I needed a much larger/over-arching parent function... Enter my path to learning the amazing use of classes in PS, simply type ''GoFish'' after running this code and you'll be on your way. ''Tip: Try lying to Bill about whether or not you have a card he asks for.''
 
<syntaxhighlight lang="powershell">
<lang PowerShell>
Class GoFish
{
Line 477:
}
 
}</syntaxhighlight>
}
9,476

edits