• Start
      • Back
      • Blog
      • Joomla 3 - administracja
      • Joomla 4 - administracja
      • Wordpress - administracja
      • Code Combat
      • Joomla czy Wordpress
      • Polityka prywatności
  • Portfolio
  • Strony internetowe
      • Back
      • Aktualizacje i szkolenia
      • Strony Responsywne
      • Jak pracuję
      • CMS Joomla
      • Pozycjonowanie strony
      • Hosting

Codecombat - tactical timing - JavaScript

Szczegóły
10 sierpień 2020
2035

// Help out on the front line.
// Move back to a flag if any try to sneak by.

while(true) {
    var flag = hero.findFlag();
    var enemy = hero.findNearestEnemy();
    if (flag){

Więcej…

Codecombat - unfair support - JavaScript

Szczegóły
10 sierpień 2020
2071

// Sneak through the forest and ambush the shaman.
// Listen to 'Commander Craig' for warning of approaching enemy.

// Place flags after pressing Submit.
while(true) {
    var flag = hero.findFlag();
    var enemy = hero.findNearestEnemy();
    if (flag){
        // Pick the flag up.

Więcej…

Codecombat - logical circle - logiczny krąg - JavaScript

Szczegóły
10 sierpień 2020
2137

Zadziałało ale nie jestem pewien czy to dobre rozwiązanie - raczej powinien dookoła przejść

Widziałem podobne rozwiązanie w necie ale poszedł dołem

 

// Move to the wizard and get their secret values.
hero.moveXY(20, 24);
var secretA = hero.findNearestFriend().getSecretA();
var secretB = hero.findNearestFriend().getSecretB();
var secretC = hero.findNearestFriend().getSecretC();

// If ALL three values are true, take the high path.
// Otherwise, take the low path. Save the 4th value.
var secretD = secretA && secretB && secretC;
if (secretD)

Więcej…

Codecombat - cursed wonderglade - przeklęta cudowna polana - JavaScript

Szczegóły
10 sierpień 2020
2190

// Cudownapolana się zmieniła od naszej ostatniej wizyty.
// Ogry  rzuciły na to klątwę i musimy je pokonać.
// Burl nadal zbiera  klejnoty, nie dotykaj go.
// Ponadto nie atakuj Burla.

while (true) {
    // Znajdź najbliższy przedmiot.
    // Zbierz je(jeśli są) tylko wtedy gdy to nie jest klejnot.
    var item = hero.findNearestItem();
    if (item && item.type != "gem") {

Więcej…

Codecombat - burlbole grove - ogród Burli - JavaScript

Szczegóły
10 sierpień 2020
2098

// Nie atakuj burli!
// Funkcja może zwracać dane.
// Kiedy funkcja zostaje użyta jest jednoznaczna z informacją zwrotną.

function shouldAttack(target) {
    // return false
    if (!target) {
        return false;
    }
    // return false
    if (enemy.type == "burl"){
        return false;
    }

Więcej…

Codecombat - useful competitors - JavaScript

Szczegóły
10 sierpień 2020
2219

// The coin field has been seeded with vials of deadly poison.
// Ogres are attacking, while their peons are trying to steal your coins!
while(true) {
    var enemy = hero.findNearestEnemy();
    if(enemy) {
        // Attack the enemy only if the type is NOT equal to "peon".
        if(enemy.type != "peon") {
            hero.attack(enemy);
        }
    }

Więcej…

Codecombat - brawler hunt - polowanie na brawlery - JavaScript

Szczegóły
10 sierpień 2020
2027

// Nie martw sie o małe i średnie ogry.
// Twoimi celami są typy "brawler".
// Kiedy awanturnik (brawler) jest bliżej niż 50metrów , odpal artylerię.

while (true) {
    // Znajdź najbliższego wroga i zmież dystans do niego.
    var enemy = hero.findNearestEnemy();
    var distance = hero.distanceTo(enemy);

Więcej…

Codecombat - wonderglade - cudowna polana - JavaScript

Szczegóły
10 sierpień 2020
2010

while (true) {
    var item = hero.findNearestItem();
    if (item) {
        // If item.type isn't equal to "gem":
        if (item.type != "gem") {
            
        

Więcej…

Strona 11 z 27

  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • Strony internetowe Lublin
  • Strony internetowe Puławy
  • Strony www Puławy
  • Strony www Lublin
  • Strony responsywne Lublin
wykonanie: kasai1.com