Giter Club home page Giter Club logo

gammillweg / hgb Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.31 MB

Java classes to create a large hexagon game board and find cells quickly. HGB will create a large number of hexagons (several thousand) in a a semi-hexagonal shape. Each cell is bound to adjacent cells. Each cell may be rapidly located.

License: Other

Java 100.00%
hexagons hexagon-game-board hexagon-board hexagon-tiles hexagon-grid tile-serface tile hexagon-library map-hexagons tile-map

hgb's Introduction

Hexagon Game Board (HGB) is a set of classes to create a manageable set of hexagon.

For examples see: https://github.com/gammillweg/HGBExample1 or https://github.com/gammillweg/HGBExample2

https://github.com/gammillweg/HGBExample1 is not very useful. All it does, with a few lines in an Android Studio MainActivity, is show how easy it is to create a hive.

https://github.com/gammillweg/HGBExample2 is considerably more complex than HGBExample1. It draws the hive, has menu picks to zoom in/out, expand/contract (the size of the hive), fill between last picks, toggle the cell ID's on/off, And show a report. One can also move the hive about, and can pick cells which are filled with a color. Even so, it is only a small demo application.

HGB will create many more than 50 thousand hexagons quickly. And locate each very accurately and fast. HGBExample2 is limited to 60 rings, and in my emulator, easily generates 74347 cells. The locator only has problems if the cells are very small.

I will be writing an article to be posted on CodeProject. When complete, this README will be updated.

The Examples are complete. I need to do more documentational work in the HGB classes. My original thought was to make HGB a library; but I am backing away form that thought. I think it best that HGB be handled as a Package. Then you will have access to HGBUtils.java to add any code you like. And if you choose to cheat and open HGB code to your application, that is your choice.

As I am new on GitHub, I just recently learned of "git clone " (You may not know it.) On a Linux command line, simply type "git clone https://github.com/gammillweg/HGBExample2"

If you would like to join an effort to improve HGB, write to [email protected].

hgb's People

Contributors

gammillweg avatar

Watchers

 avatar

hgb's Issues

Create and add HGBBasics2

HGBBasics2: A simple Android Studio project to draw the graphics of a hexagon game board.
(Follow on from HGBasics)

Begin work on making HGB a library Jar

This issue is TO BIG... It will not be truly closed until I have completed my goal of making
the HGB classes into a well documented java library Jar suitable of any java Android user
to download and use. So... will the issue ever be closed?

HGBBasics2

Write an Android Studio project as a follow on to HGBBasics to draw the hive on an Android device or emulator and upload to this repository.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.