utilize UCI_LimitStrength option in stockfish - chess

I am working on a chess game and use UCI to communicate with stockfish 12. Right now I want to limit the engine's strength to a specific ELO rating. I know there are UCI_LimitStrength and UCI_Elo options in Stockfish, but these are commands. I wonder if there is any API that I can use to achieve my goal? I am currently using python-chess, which has a depth attribute to limit the engine strength, but I have no clue how does a depth match to a Elo rating. Thanks.

Related

Looking for a way to capture elevation and location data from a device to create a topographical map or model

I'm in the process of buying a 7.5 acre plot of land in a wooded, hilly area. I would estimate that the elevation varies about 50 feet from the bottom of the creek to the top of the hill. I would like to find a good method for measuring the topography of the land so I can create a 3D model. It would be tremendously useful to be able to try out different land development ideas and to simulate locations for future buildings.
My low-tech version of doing this would be to set up a laser level and go around taking elevation measurements in a 3' or so grid pattern. As I thought about that, I realized that smartphones and similar devices have quite a few sensors built in that might make this a lot easier.
I learned about software that will use a drone to capture data and images to automatically generate a topo map and 3D model. Drone Deploy is one such tool. I do have a DJI Phantom 4, but I don't know if it's feasible to fly such an intricate path among trees to scan the entire property. I wonder if there's another way to use this amazing modern hardware (phone or drone) to make my task easy.
I would appreciate hearing any thoughts and ideas about this!
The thing with dronedeploy is that you fly above the trees usually 30meters is ok. In a cross pattern.
Why do you want to fly between the trees? You have to explain that first.

Is there any tool for defining roles and relationship of game dynamics

We want to develop a game for multi user can play at the same time with together in browser. This game will be text-based. It has a strong scenario. But some roles,skills,experience etc. are not clear.
We are searching a tool to manage and defining roles and dynamics of the game. Do you know any tool like this.
There is no such "tool" to magically manage the balance of different character classes in any game, if that's what you're looking for. You'll have to make your game and test it, a lot.
If you have say, stats such as strength, critical chance, evasion chance, precision, attack speed, etc., then it's relatively simple to make a simulation where you just specify two characters and let them fight against each other.
But this question is overall way too generic for a precise answer and is poorly tagged. And I wouldn't recommend using Game Maker for a text-based game.

Shape (preferably human) recognition API for use with standard webcam

I am interested in getting into user interaction/shape detection with a simple usb webcam. I can use multiple webcams, but don't want to be restricted to using something like the kinect sensor. My detection cameras need to be set up on either side of a helmet (or if an individual one, on top). I have found some, but they don't really have the functionality I need and most are angled towards facial recognition. I need to be able to detect a basic human skeletal structure and determine if something is obstructing it. I would really rather be able to do it without using any sort of marker system on the target person. I would like for it to be able to target multiple structures. Obviously I am willing to do tweaking if necessary, but want to see how close I can get to what I need before I rebuild the wheel. I am trying to design an ai system that can determine how many people are in an area and where they are.
Doubt there will be anything like this since Microsoft spent a ton of money on the R&D for Kinect and it's probably all locked behind an NDA. I'm also guessing there's a lot of hardware within the Kinect that is not available in a standard webcam.
The closest thing that I could find to what you're looking for is the OpenKinect project, might be a good place to start your research.

Kinect - Tracking people in a crowd - Sports Motion Tracking

I'm interested in programming the Kinect to track people over a largish area.
In particular, I'm looking to track players on a small sports field using gestures to record events in a sports game.
So far I have not found any examples of this being done before, other than Processing examples of tracking players on recorded video.
Could anybody please provide any examples of Microsoft's Kinect technology being applied to sport?
This is not what the Kinect is designed to do, and is not something that it will do for you.
The Kinect is capable to tracking no more then 6 people at a time, and only 2 people actively. It works best for people 6-8 feet away and will not track anyone much further then that.
For what you are proposing the Kinect would not benefit you. It would probably hinder you, since it is designed for 1-2 persons at a limited distance. You would be better off with a higher quality camera.
I never used or tried Kinect (but i really want to get one:). So i don't know if it suits what you need. But there is this amazing tutorial from Amnon Owed on Kinect and processing. The example is with one person but might be of your interest. The video is very cool.
It is possible. You will need to depart from the skeleton tracking available to you in the Kinect SDK and process the depth data yourself. You'll need multiple Kinects to handle a larger area. Topdown-mounted from the ceiling will let you more easily distinguish individuals that would be grouped together in a multi-person blob using side view.

Arcade Fighting Game AI

I need to build the AI for an opponent in an arcade style fighting game, very similar to Mortal Kombat.
I don't want to use random moves for the computer, but I would like to have an AI that is harder to beat.
Where can I start looking for resources ? Do you know of any implementation of this sort of project ?
Think about how you play the game.
Ask yourself, under what conditions would I perform certain attacks? When would I block? What do I do when I have low health? When my opponent has low health? Do I become more agressive in one situation over the other? When is it best to use long range versus short range?
Etc.
An AI like this usually only follows a bunch of if/else/then statements, with som randomness added in.
You want it to react quickly so much of anything else (A*, alpha-beta, etc) won't be as useful.
There is an algorithm which depends on statistic and count of shoots in each direction. You can put such logic to calculate how many times enemy kicked you in needed direction and predict future attacks.