Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The GodFather's Post: April 2019 N°2
#1
                                                                                                                                                                                                                                                    April 2019  N°2
The GodFather's Post


Hello waffers, this is the extraordinary Godfather's Post introducing you some juicy news for the WAF community.

Waffle Bot

[Image: 2.png]

We deployed our own bot into our server (repo here: https://github.com/gamechemistry/Waffle). 
The bot feaures a dynamic channels system that let every member creates new channels via a voting system and adding other members if the channel creation has been approved. 
The bot also features a full integration with Minecraft's Rcon and support cross-chat between the two platforms.

We will keep working on it to improve the performance and keep adding new feautures. We plan to release the bot in a bot directory over the internet so that everyone that has a server can use it.



Screeps (2016)

[Image: screeps.PNG]

The game of the week is Screeps, an educational MMO focused on coding scripts in Javascript.

In fact as the name may suggest Screeps is based on coding Creeps using scripts.

In Screeps you need to code your own characters to play.


There are two parts to the Screeps service, a closed source cross-platform client, and that you need to buy from Steam, and an open-source server, which can be Screep’s public server or your own.

The game helps and encourages you to learn to code (JavaScript) as you will need to know basic logical operators and loops to accomplish anything, and then graphics rendering and basic ‘intelligence’ to take your game further. 

The added beauty of the concept is that your creations continue to live on any active servers, you can code them, leave them, and revisit later to see what they’ve been up to.

Screeps is a game of interconnected rooms and ‘creeps’ that live in them. You write the code to bring them to life in the ‘console’ area of the game for immediate actions, and the ‘scripts’ area for the long-running code.


For example, to create a creep with a name and 3 abilities:
Code:
Game.spawns['Spawn1'].createCreep([WORK,CARRY,MOVE],'Harvester1');


Or to set a creep to an automated task to find an energy resource in the current room and fetch it:


Code:
module.exports.loop = function () {

   var creep = Game.creeps['Harvester1'];

   if(creep.carry.energy < creep.carryCapacity) {

       var sources = creep.room.find(FIND_SOURCES);

       if(creep.harvest(sources[0]) == ERR_NOT_IN_RANGE) {

           creep.moveTo(sources[0]);

       }

   }

   else {

       if( creep.transfer(Game.spawns['Spawn1'], RESOURCE_ENERGY) == ERR_NOT_IN_RANGE ) {

           creep.moveTo(Game.spawns['Spawn1']);

       }

   }

}

So I think you've got the idea, for everything there is a full documentation available that let you know everything needed.

Screeps is great for coding challenges, teaching, education and hiring purpose but beside all the education functions that it may have this game is a great MMO sandbox with tons of modding and customization possibilities.

Website: https://screeps.com/




MTG Arena (2017)

[Image: Cartas_e_dados_Magic.jpg]

Magic: The Gathering Arena is the free-to-play online adaptation of the first collectible card game, Wizards of the Coast’s Magic: The Gathering.


Offering an authentic MTG experience, but with the convenience and speed of a digital game, Arena is really amazing. 

Utilizing a new game engine that can take all the rules of the game into account, Arena is meant as a complement to the physical game, with no compromises for its new platform.

As in regular Magic: The Gathering, you’ll build a deck of 60 cards and summon creatures and cast spells from five different colors of magic. The goal is to reduce your opponent’s life points from 20 to zero. 

A must-have for Strategy Lovers link here: https://magic.wizards.com/it/mtgarena



Second Riddle

Two words are anagrams if and only if they contain the exact same letters with the exact same frequency (for example, "name" and "mean" are anagrams, but "red" and "deer" are not).

Given two strings S1 and S2, which each only contain the lowercase letters a through z, write a program to determine if S1 and S2 are anagrams. The program must have a running time of O(n + m), where n and m are the lengths of S1 and S2, respectively, and it must have O(1) (constant) space usage.

GL&HF, Post your solutions in the general computer science thread

See you next week!
Code:
{
 "name" : "Federico",
 "version" : "2.0",
 "Age" : "23",
 "description" : "Ambitious and eclectic person"
}

  


Forum Jump:


Users browsing this thread:
1 Guest(s)