uh-uh we are 56 away from 30k that Ryan
wasn't it today which means if you
haven't subscribed already even if we
have hit 30k be sure to do so we do a
lot of fun stuff on this channel like in
this video we are taking a look at my
first-ever software program that I ever
coded if I can find it I don't that's
what we're going to do first to see if
we can find it if we can't find it then
we're going to go as far back it's
possible to see the oldest program that
I've ever coded that's on this computer
so let's take a look and see if we can
find that
right so I have a few different files or
folders that hold my programs and I
exported them over to my external hard
drive due to a little bit of storage
space issue because my one terabyte hard
drive inside this case right here for
some reason doesn't want to hook up
don't know if it's that problem or the
SATA cable although I've tried two
different SATA cables that's not the
point back on topic alright so I have I
know I have some in school obviously
because these are most my CS courses
although
I also know I have like some some
programs over in well the programs
folder but I have programs over here
from May 8th 2015
I was looking for 2014 oh this is an
option so May 8th 2015
it looks like when all that was done or
at least last updated and then school we
have April 6th 2015 we have well this is
my this was my UNIX class so that's non
program we have some work over here
which all this is not April hangman
hangman was a fun one we have some old
files it's some so early 2015 files I
think this will do the job we also have
a make file but we'll probably just make
it in a box anyway so whatever now they
think about it it wasn't 2015 when I
started program it's 2014 and the reason
that all I have is 2015 is like between
TCC you know to you I had this one off
semester at this private school you know
in Hampton Roads and that's where I took
my first programming course that was in
Java and all of those are I think I'm
like my mom's old computer because
that's all I really had before I like
invested fully into computer science I'm
going to see if I liked it so I don't
have those I would love to find those
one day and I'll make remake a video
like this with that program if I ever go
back and find it but for now I think
hangman is our best bet
I wish I could still Remote Desktop into
the computer science server Linux server
but I don't remember my password so
saying me it will have to do so this was
early 2015 my work I already want to
start how about let's see if it runs
and it doesn't run do you have a
compiler installed yeah
I remember the one way to do this and it
kind of tells you right here savings
compiler and it tells you to do all this
stuff I just do settings compiler reset
defaults and I'll find whatever it needs
to find would you look at that all to
detect it installation path so if we
come on back run it no no no wow this is
not a virus
alright what does it say let me make
this bigger this is how do I make this
bigger forget 200 by 200 that work font
I want font to be a little bit bigger as
well and will font to be all right let's
roll with this you can read that oh yeah
let's go with this alright let's play
hangman police think of a word from four
to nine characters long the word should
not be a proper name something that
would normally capitalized nor should it
contain any punctuation characters okay
got a word what do y'all think
camera camera the am ii are a seven
words that fit this is seven six words
that fits the criteria how long is your
word i mean six letters Wow English is
hard so is counting I've missed zero
guesses timid
you were continue the letter e yes it
does enter all of the character
positions oh but I do this enter all the
characters written with so so I go oh no
I go over wait what oh alright so see a
m ee so k position number four
yeah this is pretty good does your
contain the letter T Oh our yes camera
what was that four or five so yes
and then five oh yeah yeah that's
looking right
why
to contain a
fortunately
so we have two A's in this it is in
position 2 and 6-inch are all positions
are 2 6
yes
we're contain the letter C
how does it know to guess this
if the guess is in next and that's
pretty good so yes it does it's in
position one yes M
yes obviously the only area left the
three and yeah
well then I have one thanks for playing
yeah I didn't win you one I don't like
this game
alright let's quit okay alright so let's
take a look at the code so what do you
want to look at so we have provider yes
sir
all right so the something the provider
is me I provide the word and the guesser
is the computer they guess the word that
I provided for them we have the game
this looks like the essentially the
skeleton everything that seeming to link
up together but then we also have the
process of the game that has to be in
the in hangman so so basically hangman
is the actual game this is our order of
operations for interacting with the game
so we have you know we first have to
initially initiate the word size that's
the initial prompt we have to set up the
game well that is initiating the word
size so we put in six for camera setup
Gesser word size words I remember seeing
words in our file yeah words what is
words
words is a bunch of words I guess that
makes sense so
that's that's how it does it okay all
right I'm catching I'm catching on I'm
remembering so we have words and we just
declared the word size so if we say this
has six characters six letters in the
word it comes over and says all right
all of these words that don't have six
letters are eliminated that's its first
way just process of elimination that
first step in the process of elimination
but this is it this is right here just
eliminating all words that aren't the
same amount of characters as we gave it
and then we come down to bull game
finished she goes Faust which means
essentially sets up for this so we have
this while loop as well continues as
long as game is not finished and then
the game or the guesser just continues
to roll through this while loop until
game is finished which equals guesser
has won or guesser has lost actually the
process of the game let's take a look at
what I do
provider all right so we had the initial
prompt we saw that in the beginning of
hangman and it's a prompt we have
essentially all of this text you know
being thrown out at us see out is just
C++ his way of saying system.out.print
line we declared our integer ll e in oh
le in for length and this isn't
gathering any information but at the
same time where is it at we're also
throwing this out there the C out how
long is your word and that's where we
get the C in which is our which is how
we entered the length which is le in
length which is initially declared as
integer at one of somewhere between four
and nine so as long as the length is at
one that means it fits this criteria of
the while loop of length is less than 4
or greater than 9 and it fits this
criteria right here so it's going to
continue to ask this until I give it an
actual number for example take a look
let's see if this actually works
properly so
how long is your word right now it's set
to one so obviously not crap how long is
your word right now it's set to one so
it's obviously going to be prompting us
with this so it said less than four or
greater than nine so right now we're
listening for let's see greater than
nine so let's see if we put in eleven
it should ask us this again
and it did it again it even gave us a
little error message look at that
if
whatever I enter here still continues to
do that then we print out this and then
of course the while loop continues
because we haven't been able to exit the
while loop yet so if we you know do 15
same thing - same thing five though it
works and then it moves on ooh
not this but the guesser
so the guesser and basically everything
that guess a character says within here
is as long as I haven't guessed it
before guess it like just just test out
one of the words but also somewhere in
here unless it's oh and here somewhere
right here this was looking for count
the number of words in which each letter
can be found so this is eliminating more
words because if we say there's a letter
e within the fourth spot this number
will be eliminate or this word will be
eliminated this word will be eliminated
this one will be eliminated as well so
that's what this for loop does right
here and it just keeps going rolling
through until it's like all right all
right we've eliminated all of those
words and then we have the guests are
doing the rest of his thing and we have
the provider doing the rest of his thing
and then basically we have the end of
the game to be honest with you now that
it look more and more at this code I'm
pretty sure this is one of those
programs where my professor provided us
with like at least a little bit of a
skeleton or some of this code and it was
us the students job to implement that
code and make it into what this is right
now so I didn't write all of this from
scratch I know that for a fact
in the main reason I mentioned that to
y'all is because one I don't want to lie
and make you think that I did this all
on my own and number two I don't want to
make you think I did this all on my own
so y'all are like wow you know he was
doing this three years ago and like it's
hard for me to even like comprehend what
this is or I don't even know where to
start and building one of these things I
didn't know where to start building one
of these things when I first started
either
that's why my professor started and I
finished actually a very good process so
that is a deep dive inside my hangman
application from roughly four years ago
I know it wasn't my first program I ever
coded but this I already had my mind set
on what I wanted to create I just
couldn't find the first program I ever
coded I literally am going to take
initiative after this video go back
hopefully my mom hasn't wiped the hard
drive on her computer I want to see if I
could find some of those first programs
from that java class if it's from like
2014 and it's written in Java maybe it
does third node 2014 written in Java
I'll be very happy we'll see what what I
can find but other than that I mean you
saw some of these other programs that I
have in here so let's let's take a look
at some of these other pieces of work
not in depth like we just did but like
steampunk City this is like a I want to
go into it but this is something that I
created in povery which is essentially a
programming language that you manipulate
lights and essentially the code creates
images it's very interesting I may go a
little bit in more detail about that one
in the future and then some of my
artificial intelligence courses like I
mentioned earlier I wouldn't like to go
through those and kind of walk y'all
through those a little bit and then some
of the other programs I can find every
here and there from my past I think this
was fun and then the more and more I do
it the better and better I'll get so the
more information you'll be able to
gather from these videos so to me just
being like oh well look provider dot CPP
Wow look at that cool while loop I have
there and there's a if statement inside
the while loop oh yeah so definitely
expect videos like this in the near
future going over some of those other
courses and like I said it beginning of
the video you haven't subscribed yet be
sure to do so if you made it this far in
the video I assume you like it so hit
that thumbs up button if you don't like
it hit the dislike button twice till
next time guys have a good one peace