🔧 Programmierung 🕛 vor 8 Monaten 1 Min Lesezeit
0

Day 7 of 100

↗ Quelle (dev.to)
🗣️ Stimme:

Today I started off with writing algorithms. I thought of some simple game ideas and broke those down into algorithms. I wrote them on paper before finding draw.io and started to use that instead. Afterwards, I settled on making a hangman game and wrote the algorithm for it before I started building it. First off, I made a list with as many words as I could think of(this took more time than writing the actual program) and then started building the basics. I used for loops to replace the letters in the word with underscores and made a guess variable for the user to guess a letter. If it was in the word, the underscore would be replaced with the letter and if it wasn't the user would either lose a life or if the letter has already been guessed they wouldn't but would be told that they have already guessed it. All this was placed into a while loop that would run until the user guess the word or lost all their lives. Overall, it was quite a fun little project.

Vollständiger Original-Artikel
Den kompletten Beitrag mit allen Details direkt auf dev.to lesen.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
9 Quellen
CVE-2022-44169 | Tenda AC15 15.03.05.18 formSetVirtualSer buffer overflow (EUVD-2022-47119)
1 Quelle
Best early October Prime Day deals: Save on TVs, smartwatches, and more tech
1 Quelle
I gave Claude Code $100 and 30 days to make a profit. Day 1, it built a product. Here's the pattern it used.