It was my understanding that the toolkit was built using ASP.NET MVC ; when I start a brand new "Azure project" I can access a designer and modify at least the UI... but what I don't see it where to go to get help on understanding any of the logic inside
the kit...
The designer is turned off on the toolkit, there is no access to .net "site_master"... where is it ?
And how am I supposed to understand and write the code... Just to understand what I mean you will have to check the toolkit yourself I think... its full of JS controllers and scripts which are all separate and very counter-intuitive.
I understand basic javascript programming but this is totally different ; I would not even know where to begin !
Please take 5 minutes to install the games pack its very easy, and you will see what I mean ! Here is a short clip :
TicTacToeGame.prototype.isTie = function () {
if (this.hasWinner())
return false;
for (var x = 0; x < 3; x++)
for (var y = 0; y < 3; y++)
if (this.board[x][y] == TTTColor.Empty)
return false;
return true;
};
TicTacToeGame.prototype.hasWinner = function () {
return this.getWinner() != TTTColor.Empty;
};
TicTacToeGame.prototype.getWinner = function () {
var winner;
for (var row = 0; row < 3; row++) {
winner = inRow(this, row, 0, 0, 1);
if (winner != TTTColor.Empty)
return winner;
winner = inRow(this, 0, row, 1, 0);
if (winner != TTTColor.Empty)
return winner;
}
winner = inRow(this, 0, 0, 1, 1);
if (winner != TTTColor.Empty)
return winner;
winner = inRow(this, 2, 0, -1, 1);
return winner;
function inRow(game, x, y, dx, dy) {
var color = game.getColor(x, y);
for (var k = 1; k < 3; k++)
if (game.getColor(x + dx * k, y + dy * k) !== color)
return TTTColor.Empty;
return color;
There is simply no way for me to even begin to understand the game logic, and even if I wanted to write my own "game logic" I'd have to understand how it relates to other .js scripts in the assembly, there is a board script, a controller script a viewmodel
script, a game service script, a server interface, a user service.
And even then I have no idea how the userservice talks to any of those and how it connects to the ACS namespace, how it calls the .cs repositories !
Beleive me I searched the web for endless hours, trying to get just an idea on how it's "intuitive" to create a social game on azure.
Why use all this complex assembly, why not make the tic tac toe in MVC instead ? Do I absolutely need this complex assembly to just make a HTML wrapper and login system for my game ? I'm glad that such an assembly is available don't get my wrong, the deployment
script and all is wonderful... but :
namespace Microsoft.Samples.SocialGames.Web.Services
{
using System;
using System.Collections.Generic;
using System.Json;
using System.Linq;
using System.Net.Http;
using System.Web.Mvc;
using Microsoft.Samples.SocialGames.Entities;
using Microsoft.Samples.SocialGames.Repositories;
using Microsoft.Samples.SocialGames.Web.Extensions;
This is the list of dependancies I think for the gameservice.cs ; you see what I mean ? if I modify the simplest game logic I have to understand all those systems like the bottom of my pocket ?
Heck I developped social games in frontpage back in 2000 (with ease and an intgrated designer)... I can't beleive there isn't a more intuitive way to make a game now with all this new technology. I have made a game very easily in FLEX - AIR actionscript,
published it without any effort using facebook Heroku... but then I was sold to windows azure, because honestly it looks well made and far superior to Heroku.
To be honest I have been on this tic-tac-toe for 3 months... and I haven't even begun to have a clue on what to do, even with the technical support incident I opened, noone seems to even know how I should proceed.
Noone even knows how I could bring my ready AIR application in the cloud ! And I tried to do this too... some say appfabric, others say use amethyst, others say use tofino, others say use fluorine FX ; others tell me you don't even need any of this if you
understand AJAX-JSON... but when I ask for further help all I get is pointers to other companies or basic tutorials I already know by heart... I don't mean to sound frustrated out here but do you think I would have brought 3000$+ of software from microsoft
to have to turn around and learn very complex javascript programming which works just fine without any microsoft tools ?!
Heroku integrated my AIR application on facebook literally in the snap of a finger inside a database ready PHP website under an hour of work, facebook runing perfectly with the SDK integrated in the AIR application. I would already be on the market by now...
3 months of work later on Azure, and I have not ONE
prospect of a solution, I mean I don't even know where to look to reproduce my success. Thats not even mentioning the social games pack...
I guess I just have no clue...