A.I, Data and Software Engineering


Tutorial: Multi-touch gesture for android


Multi-touch gestures are very useful in many common scenarios, such as zooming, panning. For game development, handling multi-touch is essential. This post will give a quick guide for handling multi-touch points. Project structure We create a new project name MultiTouch with Java and add a new class named GameScene as a subclass of android.view.View. The basic GameScene class is as follows. 12345...

Asteroid Collision Solution – Leetcode coding challenge

meme angry

The following asteroid collision problem is from Leetcode. The problem We are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolute value represents its size, and the sign represents its direction (positive meaning right, negative meaning left). Each asteroid moves at the same speed. Find out the state of the asteroids after all collisions. If two...

Touch me if you can (V.0.1)- Hero vs monsters game

Hero vs Monster

Hero VS Monsters This is a (very) simple JAVA implementation of the game “hero vs monsters” as part of the year 1 BSE lab. The implementation is mainly for demonstrating the custom view and touch event. Video tutorial is at the end of the article. The UI it will be a very simple UI with only one view (game view) that extends Android View. In the scene, a hero is trying to kill...

Top programming languages to learn 2020-2021

programming languages

“What is the best programming language to learn” is generally not a good question. A language should bind to a purpose, developing environment. Set it aside, popular languages often come with trending jobs. Here is the list of top 7 programming languages to consider in 2020 and 2021. 1.  Python python trademark The programming language continues to be one of the best programming...

Create a trainable chatbot with java

A chatbot is a software application used to conduct an on-line chat conversation via text or text-to-speech, in lieu of providing direct contact with a live human agent. This article will demonstrate a short fun coding piece to simulate a chatbot. Its objectives are: Accept input from the console as a string and give an answerIf the bot cannot find the answer, they ask for training and add the...

A.I, Data and Software Engineering

PetaMinds focuses on developing the coolest topics in data science, A.I, and programming, and make them so digestible for everyone to learn and create amazing applications in a short time.

Pin It on Pinterest