Electroserver rocks. It's simple, easy to use and quick to learn. Smartfoxserver on that other hand is slightly different but if you have worked on ES then working on SFS would not be difficult. SFS has an api for C#, now this is a plus for most people developing apps for windows or mac. Support for Actionscript however is there both for ES and SFS. So this would help game development for online games. Learning curve for ES is low and hence you could speed up in no time. It has got a good API and have a great documentation. And best of all, it is got a good customer support and forum. So my choice would always be on ES.
A logic to build a Radix tree (not completely though..) to search a string from a list of strings. Ideally the radix tree should be built something like this , but the logic below constructs a node for every character in the string. using System ; using System.Collections.Generic ; using System.Linq ; using System.Text ; using System.Threading.Tasks ; namespace RadixTree { class Program { public class Node { public char _Character; public List<Node> _Children = new List<Node>(); } private static List<Node> traversedNodes = new List<Node>(); private static bool stopTraversing = false ; private static string wordString = "" ; private static string mainString = "" ; private static string [] searchStrings = new string [] { "Chicago" , ...
Introducing shaders out here When rendering a scene the geometry and the texture information of the scene is sent to the graphics card for processing. In the past, a few graphics card supported the hard wired algorithms to process this information or data of the scene. This was known as the fixed function pipeline . The programmer could only use these fixed states and he had no control on the uniqueness of the game. All games looked the same irrespective of the nature of the game. For example, given a piece of clay one could design a tank, a human figure, or a ball. Each object created in such a fashion looked the same when it comes to the material and color. But none have a different twist in its look and feel. The same applies to the arena of 3D graphics.
Comments