1 / 7

Programiranje in algoritmi

Saša Divjak. Programiranje in algoritmi. Kar ni bilo povedano na predavanjih Kar ni bilo dovoj jasno Kar vas zanima. Začetek ob 20.00. Domača naloga. Besedilo naloge. 4. 8. 1. 2. 4. 8. 10. 1. 2. Razredi naloge. 10. Karta, kup kart, karte igralcev. 4. 4. 8. 3. 3. 1. 1.

chloe
Download Presentation

Programiranje in algoritmi

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Saša Divjak Programiranje in algoritmi Karnibilopovedanonapredavanjih Karnibilodovojjasno Kar vas zanima Začetekob 20.00

  2. Domača naloga Besedilo naloge 4 8 1 2 4 8 10 1 2 Razredi naloge 10

  3. Karta, kup kart, karte igralcev 4 4 8 3 3 1 1 1 4 4 2 2 2 8 10 10 3 1 1 1 3 Primer s subList (web) Karte, kup kart, karte igralcev 2 2 2 10 10

  4. Niti in metoda join() • Thread join sample (demo2, demo3) čakanje, da se končajo vse niti na seznamu niti: for (Thread t : seznamNiti) { t.join(); } // Pri vseh igralcih, naj se klice metoda narediPotezo().// Pocaka se vse niti, da se zakljucijo.// ----- narediPotezo() narediPotezo() Nit igre join narediPotezo() narediPotezo() Bolj preprost primer: Demo1

  5. Igralec kot nit • Simple wait notify

  6. Še nekaj zanimivih povezav http://math.hws.edu/javanotes/c5/s4.html http://pages.cs.wisc.edu/~hasti/cs302/examples/Exception/Deck.java http://stackoverflow.com/questions/12868482/having-trouble-with-java-card-game http://cs.fit.edu/~ryan/java/programs/enum/Card-java.html

  7. Java in igre • Teach Yourself Internet Game Programming with Java in 21 Days

More Related