Beta

Tank coding #1 : simple AIM systems

Description:

###Tank coding #1 In this Kata you need to write algorithm that finding good angle and power of shot.

Input: map as array of heights [ 0, 10, 20 ]

  Length of map: 16
  Meters between 2 points: 20
  All heights are in meters

arrays of players and enemies. Each player/enemy has next structure:

  {
    x: 10, // All values are in meters
    y: 10
  }

Output: array of shots with next structure:

{
  angle: 30, // In degrees
  force: 50 // In meters per second
}

Good luck!

Algorithms

More By Author:

Check out these other kata created by Wittybit

Stats:

CreatedMay 17, 2016
PublishedMay 26, 2016
Warriors Trained789
Total Skips318
Total Code Submissions170
Total Times Completed14
JavaScript Completions14
Total Stars13
% of votes with a positive feedback rating86% of 7
Total "Very Satisfied" Votes5
Total "Somewhat Satisfied" Votes2
Total "Not Satisfied" Votes0
Total Rank Assessments4
Average Assessed Rank
5 kyu
Highest Assessed Rank
4 kyu
Lowest Assessed Rank
6 kyu
Ad
Contributors
  • Wittybit Avatar
  • jhoffner Avatar
Ad