Algoritmizace: Simulátor zahrady
Zdravím zdejší komunitu. 🙂
I když sem poslední dobu moc vlákna nepíšu (jsem spokojeným uživatelém svého fóra), rád bych se podělil o velmi zajímavou úlohu, na kterou jsem narazil kdesi v hlubinách internetu.
Zadání:
“ Vytvořte konzolovou aplikaci, která bude simulovat život králíků na zahrádce.
* Při zapnutí aplikace uživatel zvolí velikost zahrádky (např 10×10) a počet samců a samiček.
* Následně se daný počet králíků náhodně rozmístí po zahrádce. Uživatel poté už jen odklikává chod zahrádky.
* Při každém odkliknutí se králici náhodným směrem o 1 políčko pohnou. Pokud se potkají samec a samice, náhodně okolo nich se objeví nový králík.
* Pokud se potkají 2 samci, jeden z nich zahyne. Pokud se potkají 2 samice, nic se neděje. „
Úloha je lehká a vhodná na procvičení principů OOP. Řešil jsem v C# a kompletně mi řešení (včetně ozdob, ale to je prostě můj styl) zabralo hodinu a půl. Ve výsledku mám aplikované celé čtyři třídy.
Neváhejte a zapněte VS / Eclipse (či co používáte) a OOP si procvičte. Případně se pochlubte svým časem.
Pro GMLkaře, zde by zase jednou v efektivitě GM vyhrálo na celé čáře. Komplet se to v GML dá sestrojit do půlhodiny, jen konzolové to nebude.
78 odezev
Možná, že to v GM není konzolové, ale může to být alespoň konzoloidní.
EXE
EDIT:
ovládání: SPACE krok, C kontinuální, R restart, * hide info, CTRL – pauza infa
1cession
phd dissertation example https://professionaldissertationwriting.org/
dissertation proposal writing service https://professionaldissertationwriting.com/
nursing dissertation help https://helpwithdissertationwritinglondon.com/
service writing https://dissertationwritingcenter.com/
dissertation help leicester https://dissertationhelpexpert.com/
what is a dissertation https://accountingdissertationhelp.com/
average dissertation length https://writing-a-dissertation.net/
dissertation writing services in usa https://bestdissertationwritingservice.net/
doctoral dissertation help https://businessdissertationhelp.com/
tips on writing a dissertation https://customdissertationwritinghelp.com/
language editing phd thesis https://dissertationhelpspecialist.com/
writing dissertation abstract https://dissertationhelperhub.com/
online casino free bet https://download-casino-slots.com/
online casino vegas https://firstonlinecasino.org/
pa online casino apps https://onlinecasinofortunes.com/
best online casino us https://free-online-casinos.net/
ocean online casino app https://internet-casinos-online.net/
betmgm casino online https://cybertimeonlinecasino.com/
bet mgm online casino https://1freeslotscasino.com/
river sweep online casino https://casino-online-roulette.com/
rivers casino online https://onlineplayerscasino.com/
online casino app https://ownonlinecasino.com/
vegas world free online casino games https://all-online-casino-games.com/
real money online casino pennsylvania https://casino8online.com/
best phone vpn https://freevpnconnection.com/
best anonymous vpn service https://ippowervpn.net/
best vpn for public wifi https://superfreevpn.net/
gay dating show youtube https://gay-singles-dating.com/
does pof allow for gay dating https://gayedating.com/
dating sites https://freephotodating.com/
women for free https://onlinedatingbabes.com/
serious free dating sites https://adult-singles-online-dating.com/
dating usa https://online-internet-dating.net/
sex dating site https://speedatingwebsites.com/
free singles dating https://datingpersonalsonline.com/
fdating login https://wowdatingsites.com/
date website free https://lavaonlinedating.com/
romancemingle https://freeadultdatingpasses.com/
local single https://zonlinedating.com/
meet me now dating site https://onlinedatingservicesecrets.com/
bonus online casino https://online2casino.com/
mgm nj online casino https://casinosonlinex.com/
new york gay chat lines https://newgaychat.com/
dubuque gay chat https://gaychatcams.net/
choose a gay video chat free https://gaychatspots.com/
gay chat room finding sex https://gay-live-chat.net/
faree gay chat https://chatcongays.com/
1st avenue chat gay https://gayphillychat.com/
gay chat phone numbers https://gaychatnorules.com/
wed chat gay free https://gaymusclechatrooms.com/
bbc gay chat room free https://gayinteracialchat.com/
cheapest paper writing service https://sociologypapershelp.com/
pay people to write papers https://paperwritinghq.com/
customized writing paper https://writepapersformoney.com/
paper writers online https://write-my-paper-for-me.org/
custom college paper https://doyourpapersonline.com/
pay to do my paper https://cheapcustompaper.org/
do my papers https://writingpaperservice.net/
need someone write my paper https://buyessaypaperz.com/
pay for paper https://mypaperwritinghelp.com/
apa papers for sale https://essaybuypaper.com/
buying papers online college https://studentpaperhelp.com/
Can you live a long life as a smoker zyban wellbutrin?
How many times does a smoker try to quit bupropion 150 mg?
What did Melissa Mccarthy use to lose weight or extreme weight loss pills?
Are weight loss pills a good idea or weight loss medications?
Why do your balls get bigger when you get older pictures of viagra pills?
Does impotence happen suddenly where can i buy viagra in canada?
How do you make a man want you how to buy viagra online safely in india?
How are babies made for kids viagra pills near me?
Pills news leaflet. Characterize names. paroxetine medication?
Meds information sheet. Tranquillizer Class. paroxetine side effects?
Pills message leaflet. Short-Term Effects. finasteride vs dutasteride for bph?
Soporific prescribing information. Long-Term Effects. avodart hair loss results photos?
Medicines information. Effects of Drug Abuse. buy abilify online?
Pills info to patients. Cautions. abilify 5 mg pill?
Cure-all information. Generic Name. avodart cost canada?
You stated this perfectly. over the counter avodart dosage?
generic levitra online
levitra dosage
Medication information in return patients. Cautions plaquenil hydroxychloroquine sulfate?
Medicines information. Effects of Drug Abuse. hydroxychloroquine brand name?
What are examples of good quality warnings for sildenafil?
How do guys get emotionally attached sildenafil 20 mg dosage instructions?
3draughtsman
How many ejaculation a week is healthy sildenafil 50 mg mexico?
How do you show your man in the mood sildenafil interaction with other drugs?
How many eggs does a woman have sildenafil?
How do you make my ex jealous for leaving me sildenafil?