Artificial intelligence (AI) is the branch of computer science and technology that studies the development of machines able to simulate aspects of human intelligence.

learn more… | top users | synonyms

0
votes
0answers
34 views

Captcha Maker program in python [on hold]

I have written a program to create an image consisting of randomly generated numbers using PIL. I have stored the numbers generated and compared it with user's input. ...
16
votes
4answers
854 views

Refining AI movement logic

I have the below class which moves the AI towards the given plant, this works well however it feels really messy. Any input as to a better way to lay out the logic would be really grateful, the logic ...
5
votes
1answer
72 views

Revised: AI for 2048 in Haskell

This is a revised version of an AI for the game 2048, written in Haskell. Link to original thread: Poor AI for 2048 written in Haskell I think this version is a lot cleaner, thanks to the tips from ...
11
votes
6answers
5k views

Is my AI solution to Untrusted Game considered logical or “ethical”?

I am applying to a university to study Computational Linguistics, and as I read, it would be recommended to have a background in Artificial Intelligence. The Admission board asked me to prepare a ...
6
votes
1answer
84 views

Poor AI for 2048 written in Haskell

I'm learning Haskell and thought it would be fun to write an AI for the game 2048 in Haskell. In my implementation I got rid of the randomized aspects of the game. This makes the program ...
10
votes
2answers
87 views

A Scoring approach to Computer Opponents

This code is starting to be used within several of my projects, and therefore I thought it's time to get it reviewed. Description The most common application for this code is that there is a ...
2
votes
1answer
155 views

Turning 1D array to 2D array in TicTacToe

To check a win in my TicTacToe game, I have created a 2D array that contains all the combination that a game can be won in, like so: ...
16
votes
5answers
2k views

Tic Tac Toe computer AI

I am creating a TicTacToe game for my college project, and when I finished the code for computer AI, I ended up with a big chunk of code. It allows the computer to make the winning move, stopping the ...
9
votes
2answers
288 views

AI bot Java dungeon game

I have written a script that allows a user to walk around a dungeon pick up gold and once they have picked it all up they can exit the game through an exit. What I am doing now is writing a bot to do ...
3
votes
2answers
119 views

Organising code for a genetic algorithm in Python

After programming in Haskell for a while, I've gotten attached to a functional style. This is clearly evident in the code for my genetic algorithm. Could you provide me with some hints as to how I ...
7
votes
1answer
85 views

Follow-up: C++ 'evolutionary AI' implementation

Based on the advice provided in my previous question, I would like to post the other source file that actually implements all the combat mechanics and also the actual evolution process. As with the ...
6
votes
2answers
407 views

'Evolutionary AI' implementation

For the code sample that I am asked to submit with most of my job applications (usually Gameplay Programmer), I created this console application in which I attempt to figure out what is the best ...
6
votes
2answers
153 views

python neural network: arbitrary number of hidden nodes

I'm trying to write a neural network that only requires the user to specify the dimensionality of the network. Concretely, the user might define a network like this: ...
4
votes
1answer
64 views

PseudoBrain FizzBuzz Thoughts

Some recent discussions on this site involved the Fizz-Buzz game - I have never actually implemented this, but for the record this is what I put together: ...
3
votes
2answers
949 views

Tic-Tac-Toe optimization 2.0 with AI

Previous question (without AI): Tic-Tac-Toe optimization This new code has a main file, a base game class, and two derived ...
1
vote
1answer
153 views

Review tic-tac-toe code

tic-tac-toe using negamax for AI, my first real program in ruby is not looking too good, help me make it better! Some sore points are: ...
1
vote
1answer
2k views

Minimax Alpha-beta code for Java

Not so long ago I learned how to implement the minimax algorithm with alpha beta pruning, and even created a perfect tic tac toe player. Can you please show me a different, maybe more excepted way of ...
4
votes
1answer
144 views

Please review my Dangerworld game

You can download the Dangerworld game in pre-alpha version and review the code. The particular issues I have are making the character walk over steps instead of sliding NPC AI how to make the enemy ...
8
votes
2answers
360 views

Aimbot for open-source FPS game Assault Cube

I am actually quite new to C++, although I have previously programmed in Java. Do you see any ways I can improve readability, maintainability and performance, and make it more object-oriented? ...
6
votes
0answers
331 views

Connect Four AI (Minimax) in Clojure

I wrote a Connect Four game including a AI in Clojure and since I'm rather new to Clojure, some review would be highly appreciated. It can include everything, coding style, simplifications, etc. But ...
5
votes
1answer
344 views

Java alphabeta search

Is this code correct? This code was adapted from this alphabeta pseudocode. AlphaBeta search is often mentioned but getting the code 100% correct is tricky. ...
5
votes
1answer
3k views

Optimizations to 8-puzzle

I am a CS student about to enter my junior year. I am attempting to get better and better at programming and thought that this would be a good place to toss my code out there to see if some of you ...
3
votes
1answer
994 views

Python: Academic implementation of artificial neural network

With some free time, I decided to study artificial neural networks as an academic exercise (not homework). Over the course of my studies, I decided to write a Python application that would allow me to ...