{"id":15,"date":"2016-09-26T13:50:10","date_gmt":"2016-09-26T11:50:10","guid":{"rendered":"http:\/\/gieorgijewski.pl\/blog\/?p=15"},"modified":"2025-08-27T13:24:00","modified_gmt":"2025-08-27T11:24:00","slug":"in-the-beginning-was-the-game","status":"publish","type":"post","link":"https:\/\/gieorgijewski.pl\/blog\/en\/in-the-beginning-was-the-game\/","title":{"rendered":"In the beginning was the game&#8230;"},"content":{"rendered":"<p>Hi!<\/p>\n<p>Without much ado &#8211; what this blog is for, why, how often &#8211; I cut to the chase\u2026<br \/>\nAnd to the gift for my first Readers.<\/p>\n<p>Since when I\u2019m interested in computers, that is since childhood in 1980\u2019s, the first and the most important applications of computers for me were games.<\/p>\n<p>A lot has changed since then, computer became my main tool in everyday work, and its huge popularity made me a little<br \/>\nforgetting about how it fascinated me once when, in spite of its 64KB of memory and 2MHz processor under the hood, transducer me into another magnificent worlds, challenged me intellectually and manually.<\/p>\n<p>Game developers appeared to me as gorgeous magicians, poets, splendid musicians and and brilliant engineers in one person. The dreams of becoming one of such genius seemed inappropriate. After all my game won\u2019t be on the same level as theirs, I can\u2019t program so well, I don\u2019t no anything about graphics, I don\u2019t have musical talent, etc\u2026<\/p>\n<p>Sometimes we set the constraints for ourselves, that doesn\u2019t allow us to just feel the joy of what we really enjoy doing.<br \/>\nAnd making games is even bigger joy than playing them.<br \/>\nAnd making games which are played with joy is a top fulfillment.<\/p>\n<p>Is it possible to make your first games being almost forty?<br \/>\nYes it is, like starting to paint, sing, jog or to do DIY.<br \/>\nOne just needs to stop dreaming\u2026<\/p>\n<p>So I encourage you to play my first game below, which is inspired by well known play.<br \/>\nThe rules are:<\/p>\n<ul style=\"padding-left: 20px;\">\n<li>You have 12 balls in a row and the last one of them is special &#8211; it is a bomb!<\/li>\n<li>Choose who plays first (you or a computer) and then players make moves in turns &#8211; every turn you take away one or two balls.<\/li>\n<li>Who takes the last ball away, loses!<\/li>\n<\/ul>\n<p>Play against computer and see if and how you can win against him.<\/p>\n<p>\n<!-- iframe plugin v.5.2 wordpress.org\/plugins\/iframe\/ -->\n<iframe loading=\"lazy\" src=\"https:\/\/gieorgijewski.pl\/subtraction\/subgame_en.html\" width=\"100%\" height=\"400px\" scrolling=\"yes\" class=\"iframe-class\" frameborder=\"0\"><\/iframe>\n<br \/>\nI hope the game gave you a moment of joy as it made me a lot of joy to make it. This simple game is made in HTML and JavaScript which I currently study.<\/p>\n<p>Before I started programming this game I made a little design in the form of document, which is known in game development world as GDD &#8211; Game Design Document. This is very useful stage of game creation.<br \/>\nWhen you have the ideas behind the game well-thought and written down it is easier to focus on implementation.<br \/>\nIf you know the look of the game, images, how computer and player moves, what is the algorithm to win the game, you know where you are heading and take care only of technical problems. Of course there were some small issues on the way but most of the game was considered in advance.<\/p>\n<p>I concluded a few bonus features in GDD which are not in the game because they could have extended the implementation. First of all I wanted the game to be finished!<br \/>\nThe game doesn\u2019t have a big replayibility, with you knowing how to win it the fun is over.<br \/>\nSo you are encouraged to comment if it was surprising to you, if you want me to implement bonus features from GDD or make your own ideas how to enrich the gameplay.<br \/>\nAnd perhaps you would like to read how to win this game and why, how computer plays and how to make the computer learn this game. The second topic for sure will be covered in the blog, so you can choose which one first.<\/p>\n<p>So comment, choose, suggest!<\/p>\n<p>P.S. For interested in JavaScript: it turned out that move is relative, onMouseOut event is generated not only by cursor moving out of the object but also by object under the cursor removed from DOM structure.<\/p>\n<div style=\"font-size: 8px;\">Icons made by <a title=\"Madebyoliver\" href=\"http:\/\/www.flaticon.com\/authors\/madebyoliver\" class=\"broken_link\">Madebyoliver<\/a> from <a title=\"Flaticon\" href=\"http:\/\/www.flaticon.com\" class=\"broken_link\">www.flaticon.com<\/a> is licensed by <a title=\"Creative Commons BY 3.0\" href=\"http:\/\/creativecommons.org\/licenses\/by\/3.0\/\" target=\"_blank\" rel=\"noopener\">CC 3.0 BY<\/a><\/div>\n<div style=\"font-size: 8px;\">Icons made by <a title=\"Freepik\" href=\"http:\/\/www.flaticon.com\/authors\/freepik\" class=\"broken_link\">Freepik<\/a> from <a title=\"Flaticon\" href=\"http:\/\/www.flaticon.com\" class=\"broken_link\">www.flaticon.com<\/a> is licensed by <a title=\"Creative Commons BY 3.0\" href=\"http:\/\/creativecommons.org\/licenses\/by\/3.0\/\" target=\"_blank\" rel=\"noopener\">CC 3.0 BY<\/a><\/div>\n<div style=\"font-size: 8px;\">Icons made by <a title=\"Roundicons\" href=\"http:\/\/www.flaticon.com\/authors\/roundicons\" class=\"broken_link\">Roundicons<\/a> from <a title=\"Flaticon\" href=\"http:\/\/www.flaticon.com\" class=\"broken_link\">www.flaticon.com<\/a> is licensed by <a title=\"Creative Commons BY 3.0\" href=\"http:\/\/creativecommons.org\/licenses\/by\/3.0\/\" target=\"_blank\" rel=\"noopener\">CC 3.0 BY<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hi! Without much ado &#8211; what this blog is for, why, how often &#8211; I cut to the chase\u2026 And to the gift for my first Readers. Since when I\u2019m interested in computers, that is since childhood in 1980\u2019s, the first and the most important applications of computers for me were games. A lot has &hellip; <a href=\"https:\/\/gieorgijewski.pl\/blog\/en\/in-the-beginning-was-the-game\/\" class=\"more-link\">Czytaj dalej<span class=\"screen-reader-text\"> \u201eIn the beginning was the game&#8230;\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-game"],"_links":{"self":[{"href":"https:\/\/gieorgijewski.pl\/blog\/wp-json\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gieorgijewski.pl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gieorgijewski.pl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gieorgijewski.pl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gieorgijewski.pl\/blog\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":16,"href":"https:\/\/gieorgijewski.pl\/blog\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":362,"href":"https:\/\/gieorgijewski.pl\/blog\/wp-json\/wp\/v2\/posts\/15\/revisions\/362"}],"wp:attachment":[{"href":"https:\/\/gieorgijewski.pl\/blog\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gieorgijewski.pl\/blog\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gieorgijewski.pl\/blog\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}