{"id":489,"date":"2012-01-24T23:01:26","date_gmt":"2012-01-25T06:01:26","guid":{"rendered":"https:\/\/www.tungsai.com\/blog\/?p=489"},"modified":"2012-01-24T23:01:26","modified_gmt":"2012-01-25T06:01:26","slug":"java-dice-rolling-app","status":"publish","type":"post","link":"https:\/\/www.tungsai.com\/blog\/?p=489","title":{"rendered":"Java dice rolling app"},"content":{"rendered":"<p>another fun night of Java&#8230; I managed to finally make the server parse client input, looking for a &quot;d&quot; that has int&#8217;s in front of, and behind, it. so you can chat regularly, then type &quot;1d20&quot; and it&#8217;ll roll, then send the result. <\/p>\n<p>This thing i scraped off the internet, out of the box, is pretty much a piece of shit, unless you want to see how client\/server connections get basically made. The gui is super-lame, and the server throws exceptions in an endless loop if any client disconnects without typing &quot;quit&quot;. also, you have to click &quot;send&quot; rather than hit enter in the chat window.<\/p>\n<p>But i actually care less about all that, than I do learning how to program java. i want to make it just have graphics of dice, and when you click &amp; drag them into the &quot;box&quot;, they will go &quot;Ka-lunk ka-lunk&quot; and show the numbers. I&#8217;ve got ideas in mind for the droid app. <\/p>\n<p><a href=\"https:\/\/www.tungsai.com\/blog\/wp-content\/uploads\/2012\/01\/image.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/www.tungsai.com\/blog\/wp-content\/uploads\/2012\/01\/image_thumb.png\" width=\"437\" height=\"313\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<p><a href=\"https:\/\/www.tungsai.com\/blog\/wp-content\/uploads\/2012\/01\/image1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/www.tungsai.com\/blog\/wp-content\/uploads\/2012\/01\/image_thumb1.png\" width=\"575\" height=\"410\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>another fun night of Java&#8230; I managed to finally make the server parse client input, looking for a &quot;d&quot; that has int&#8217;s in front of, and behind, it. so you can chat regularly, then type &quot;1d20&quot; and it&#8217;ll roll, then send the result. This thing i scraped off the internet, out of the box, is&hellip; <a class=\"more-link\" href=\"https:\/\/www.tungsai.com\/blog\/?p=489\">Continue reading <span class=\"screen-reader-text\">Java dice rolling app<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-489","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/www.tungsai.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tungsai.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tungsai.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tungsai.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tungsai.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=489"}],"version-history":[{"count":0,"href":"https:\/\/www.tungsai.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/489\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tungsai.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tungsai.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tungsai.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}