-
All of Darwin's dependencies (cocos2d-x, OpenNN, FlatBuffers, SQLite3, wxWidgets, etc) are merged into the repository. This is to reduce burden on the developer to manually build the libraries themselves. Instead, CMake handles building the dependencies. Moreover the dependencies are modified to harmonize with each other and prevent conflicts such as duplicate symbols.
-
Darwin now comprises a single executable. Previously there was a separate executable for each extension. Instead, a GUI-based Control Panel is created to manage everything - from resuming evolution to choosing extensions.
-
wxWidgets is used to create the Control Panel's GUI. It's cross-platform and has a friendly API.
-
OpenNN's randomization isn't seeded properly by default, resulting in "randomized" neural network parameters (weights and biases) being the same all the time. To resolve this issue, we used our own randomization techniques.
-
Rotation of Jumpers is disabled to prevent them from falling over to the ground.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import sys | |
import os | |
# take email address as an argument | |
if len(sys.argv) == 4: | |
name = sys.argv[1] | |
email_address = sys.argv[2] | |
linux_username = sys.argv[3] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Account.h" | |
#include <cstdio> | |
Account::Account(string name, int age) | |
{ | |
this->name = name; | |
this->age = age; | |
this->balance = 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
class MyInfo | |
{ | |
private: // data hidden from outside world | |
int x; | |
public: | |
// function to set value of variable x | |
void set(int a) { x = a; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org 100h | |
; Set the address | |
MOV AX, 3010h | |
MOV DS, AX | |
MOV BX, 0000h | |
; Move the contents of the selected address to BL | |
MOV BL, BYTE PTR DS:[BX] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
int main() { | |
int n, i, j, flag, order; | |
int x[20], y[20]; | |
scanf("%d", & n); | |
for (i = 0; i < n; i++) { | |
scanf("%d", & order); | |
order--; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
// Number of test cases | |
int n; | |
scanf("%d", &n); | |
// Minimum distances | |
int distances[n]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int abs(int value) { | |
if (value < 0) | |
return value * -1; | |
else | |
return value; | |
} | |
int even(int value) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.MODEL SMALL | |
.DATA | |
NUMBERS DB 4 DUP (?) | |
J DW 1 | |
I DW ? | |
LINEBREAK DB 10, 13, "$" | |
KEY DB ? | |
MSG1 DB "Ascending Order: $" | |
MSG2 DB "Descending Order: $" |
NewerOlder