Translate

Thursday, 17 December 2015

Programming Challenge 2

 Your company built an in-house calendar tool called HiCal. You want to add a feature to see the times in a day when everyone is available.

To do this, you’ll need to know when any team is having a meeting. In HiCal, a meeting is stored as tuples ↴ of integers (start_time, end_time). These integers represent the number of 30-minute blocks past 9:00am.

For example:
  (2, 3) # meeting from 10:00 – 10:30 am
(6, 9) # meeting from 12:00 – 1:30 pm

Write a function condense_meeting_times() that takes a list of meeting time ranges and returns a list of condensed ranges.
For example, given:
  [(0, 1), (3, 5), (4, 8), (10, 12), (9, 10)]
your function would return:
  [(0, 1), (3, 8), (9, 12)]

Do not assume the meetings are in order. The meeting times are coming from multiple teams.

In this case the possibilities for start_time and end_time are bounded by the number of 30-minute slots in a day. But soon you plan to refactor HiCal to store times as Unix timestamps (which are big numbers). Write something that's efficient even when we can't put a nice upper bound on the numbers representing our time ranges.

Thursday, 10 December 2015

Programming Challenge 1

 You have a list of integers, and for each index you want to find the product of every integer except the integer at that index.

Write a function get_products_of_all_ints_except_at_index() that takes a list of integers and returns a list of the products.
For example, given:
  [1, 7, 3, 4]
your function would return:
  [84, 12, 28, 21]
by calculating:
  [7*3*4, 1*3*4, 1*7*4, 1*7*3]

Do not use division in your solution.

Saturday, 30 May 2015

Truevision3D

Truevision3D is focused on building cutting edge development tools at an affordable price. Large studios, indie developers, universities, and government agencies across the globe use our products for games, simulations, training, broadcast, and more. What began as a hobby project in January 1999 has grown into a global company, supporting thousands of clients and community users. As we continue to grow, we are committed to providing the best software, at prices that will continue to further the growth of the independent development marketplace.


HeroEngine

HeroEngine is a 3D game engine and server technology platform originally developed by Simutronics Corporation specifically for building MMO-style games. At first developed for the company's own game Hero's Journey, the engine won multiple awards at tradeshows, and has since been licensed by other companies such as BioWare Austin (which is using it for Star Wars: The Old Republic) and Stray Bullet Games (for an as yet unnamed project).

On June 12, 2010, Idea Fabrik announced that it had purchased "the HeroEngine and HeroCloud game development technologies" as well as hired "the staff of Simutronics that was associated with the development and support of HeroEngine/HeroCloud".

HeroCloud is a version of HeroEngine that is available for $99 per year, under the license that they receive 30% the money sales of any game made with it. It includes everything that a license to the HeroEngine has, except for access to the source code.


Saturday, 23 May 2015

Euphoria

Euphoria allows characters to dynamically synthesise motion in response to events around them. For example, protecting themselves from a heavy fall or reacting to gunfire. This unique, ground-breaking system allows developers to create responses and characters that simply isn't possible with traditional approaches to animation, and is fully integrated into Morpheme.

Morpheme with Euphoria continues to provide support for Xbox One™, Playstation®4 and PC. Morpheme with Euphoria is also integrated with Nvidia® PhysX™ 3 and Unreal® Engine® 4.


Saturday, 16 May 2015

CryEngine

CryEngine is a game engine designed by the German game developer Crytek. It has been used in all of their titles with the initial version being used in Far Cry, and continues to be updated to support new consoles and hardware for their games. It has also been used for many third-party games under Crytek's licensing scheme, including Sniper: Ghost Warrior 2 and SNOW. Ubisoft maintains an in-house, heavily modified version of CryEngine from the original Far Cry called the Dunia Engine, which is used in their later iterations of the Far Cry series.

The CryEngine software development kit (SDK), originally called Sandbox Editor, is the current version of the level editor used to create levels for CryEngine by Crytek. Tools are also provided within the software to facilitate scripting, animation, and object creation. It has been included with various Crytek games (including, but not limited to, Crysis and Far Cry), and is used extensively for modding purposes. The editing style is that of the sandbox concept, with the emphasis on large terrains and a free style of mission programming. The editor can also construct indoor settings.

As opposed to editors like UnrealEd, which use a "subtractive" editing style that takes away areas from a filled world space, the Sandbox has an "additive" style (like Quake II). Objects are added to an overall empty space.

class CScriptBind_Game :
  public CScriptableBase
{
public:

  CScriptBind_Game( ISystem* pSystem );
  virtual ~CScriptBind_Game() {}

  int GameLog(IFunctionHandler* pH, char* pText);

};

Saturday, 9 May 2015

Cocos-2d

Cocos2d-X is a suite of open-source, cross-platform, game-development tools used by thousands of developers all over the world.

Game engines include many components that when used together will help speed up performance and development time. A game engine usually has some components, such as: a renderer, 2d/3d graphics, collision detection, a physics engine, sound, controller support, animations and more. Game engines usually support multiple platforms thus making it easy to develop your game and then deploy it to multiple platforms with little work required.

Since Cocos2d-x is a game engine, it provides a simplified API for developing cross platform mobile and desktop games. By encapsulating the power inside an easy to use API, you can focus on developing your games and worry less about the implementation of the technical underpinnings. Cocos2d-x will take care of as much or as little of the heavy lifting as you want.

Example code:

// This is how to create a sprite
auto mySprite = Sprite::create("mysprite.png");

// this is how to change the properties of the sprite
mySprite->setPosition(Vec2(500, 0));

mySprite->setRotation(40);

mySprite->setScale(2.0); // sets scale X and Y uniformly

mySprite->setAnchorPoint(Vec2(0, 0));