Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
There is a card game that can be played in the browser (through a WebGL application) or with Steam. I would like to improve my machine learning skills by developing a bot that can play this game automatically. I think the developers don't provide an API for that.
Can I do that in some way? How can I get data from the game application (for example, capturing data from "screenshot")?
Reading the data from screenshots is possible but you will need to recognise every single card. For example you could take the color value of a few pixels on every card and map the combination to the card. Depending on how many cards there are and how different each card is, you will need more or less pixels. With this database you will have to check every place on the screen where a card could be played (assuming cards are always placed in the same location) and check the pixels to find the played card. You will also need a similar process for other relevant information that is needed by the bot (e.G. the players and the enemies health points).
There is a tutorial in Python for this process here: https://code.tutsplus.com/tutorials/how-to-build-a-python-bot-that-can-play-web-games--active-11117
Another option is finding the values in the computers memory. I fear, I can't provide you any help for this.
Be careful though, developing/using a bot is most certainly against the terms and conditions of the game and may result in a ban if it is detected by the developers.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
So, I have been been looking a lot into this topic and the internet seems to be rather vague and divided. I have found that a lot of people handle different screen sizes and aspect ratios by using certain scripts to scale and anchor game objects.
Some people say that you should have assets of different sizes, and enable/disable them based on the screen size. While this method (to me) seems more efficient, it feels like this is suggested less than the other method.
So I would like to ask what the best method is. (Or if there is such a thing as the "best")
The best way is by using a Canvas Scaler and making good use of the anchor-point of the UI elements in your scene and using Layout Groups, this way they will fit nicely into almost all of the aspect ratios.
A few videos covering these topics:
Jimmy Vegas
Unity 3D With Scott
Cat Trap Studios
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm trying to make a Super Mario Bros game on Netlogo. Any suggestions on how to go about that? Specifically, I need help trying to get Mario to jump and move at the same time.
To move left and right, I currently have the background scrolling left or right by asking the patches to copy the color of patches before/after them. Also, ticks are on.
It sounds like you're trying to learn how to create a side-scrolling game.
I'd recommend going over GameAcademy.com & look up what Trés Smith is doing with teaching people how to create side-scrolling games. One example of a side-scroller is Nintendo's Super Mario Bros. game.
Trés also runs BuildBox.com, which is an IDE for developing 2D games. I've seen some pretty cool videos on his site, for how to get started making video games.
I've also heard of these 2 sites, as being possibly good ones for learning new concepts through video presentations. I don't know if they contain video game specific material, but you may want to peruse them as well:
https://www.khanacademy.org
https://www.lynda.com
You might also check YouTube for how-to-videos on making side-scrolling video games.
Good luck!
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm trying to build a swift app that would allow a user on one side to draw an image that will be updated in nearly real time on the other user's device, somewhat as if they were drawing on a whiteboard in person.
Anyone have any tips or places where I should start? I'm relatively new to swift. Thanks for your help.
This requires a persistent line of communication between your mobile device(s) and your server. Websockets allow this type of communication. I haven't implemented them myself so I can't provide implementation details, but there are plenty of resources available online.
Sockets with Swift
Websockets Tutorial
I think Realm is exactly what you are looking for.
Real time collaboration in as little as 10 lines of code
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have an idea for an app that rewards users for completing real-life actions (things like recycling, eating healthy .etc) but I want to avoid having a button on every action saying "I did it" because then some users will just click all the buttons to get the rewards.
I have tried searching Stack Overflow for things like "confirming a users actions" and have not turned up any promising results.
Some examples of actions I would like to try and confirm if possible are:
recycling
certain food items the user buys (barcode scanner maybe?)
donations to thrift shops (goodwill .etc)
users energy bills/use
I understand that some of these may need to be trust-based (I.e. With a "I'm done" button) but I would like to minimize the use of this as much as possible to prevent users from cheating the system. Does anyone know of some reliable ways to verify that the user has completed the tasks before offering rewards?
You have to look at the sensors that are available to you on the device. Honestly I can't see a way to do many of the things you suggested. Location based actions may be a good route. Checking in within 1Km of the gym or thrift store for example.
I heard about an app (i forget the name) where you would program in what exercise you are trying to do then the gyro and accelerometer in the phone would determine if you are performing the exercise correctly and verifying how many times you did it.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm currently doing an internship in a medical laboratory
They want to buy Ipad and medical device connected to it
example: diabet tester http://www.ibgstar.us/
blood pressure monitoring system http://www.ihealth99.com/
I'm wondering if I can code my own application that gets the data from the medical device and then handle it?
thks for your answers
I think they're some step to success it .
At first you need a Hardware solution like said "Mundi".
You need to grab data from device and store them somewhere accessible (like in a BDD with online acces).
And then the iPad application just have to connecte to the data-Source and play with it
The short answer is YES.
There are many ways to get the data into the app via a network. If you would like to read from the device directly, you would have to additionally find a hardware solution.
I'm not sure this applies, but I've seen some really cool medical apps written using Harvard's SMART project. They provide a simple but effective framework, which is independent of the Hospital Information System (like Cerner, Epic, VistA).