aaaabbb
This commit is contained in:
18
packages/action/dist/index.js
vendored
18
packages/action/dist/index.js
vendored
@@ -30894,6 +30894,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||
}
|
||||
};
|
||||
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
||||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
||||
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
||||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
||||
r[k] = a[j];
|
||||
return r;
|
||||
};
|
||||
exports.__esModule = true;
|
||||
exports.generateContributionSnake = exports.userContributionToGrid = void 0;
|
||||
var github_user_contribution_1 = __webpack_require__(1132);
|
||||
@@ -30902,8 +30909,8 @@ var grid_1 = __webpack_require__(7202);
|
||||
var compute_1 = __webpack_require__(2869);
|
||||
var gif_creator_1 = __webpack_require__(7345);
|
||||
exports.userContributionToGrid = function (cells) {
|
||||
var width = Math.max.apply(Math, cells.map(function (c) { return c.x; }));
|
||||
var height = Math.max.apply(Math, cells.map(function (c) { return c.y; }));
|
||||
var width = Math.max.apply(Math, __spreadArrays([0], cells.map(function (c) { return c.x; }))) + 1;
|
||||
var height = Math.max.apply(Math, __spreadArrays([0], cells.map(function (c) { return c.y; }))) + 1;
|
||||
var grid = generateGrid_1.generateEmptyGrid(width, height);
|
||||
for (var _i = 0, cells_1 = cells; _i < cells_1.length; _i++) {
|
||||
var c = cells_1[_i];
|
||||
@@ -30936,8 +30943,8 @@ exports.generateContributionSnake = function (userName) { return __awaiter(void
|
||||
colorSnake: "purple",
|
||||
};
|
||||
gameOptions = { maxSnakeLength: 5 };
|
||||
gifOptions = { delay: 20 };
|
||||
commands = compute_1.computeBestRun(grid0, snake0, gameOptions).slice(0, 50);
|
||||
gifOptions = { delay: 10 };
|
||||
commands = compute_1.computeBestRun(grid0, snake0, gameOptions);
|
||||
return [4 /*yield*/, gif_creator_1.createGif(grid0, snake0, commands, drawOptions, gameOptions, gifOptions)];
|
||||
case 2:
|
||||
buffer = _b.sent();
|
||||
@@ -41573,7 +41580,7 @@ exports.computeBestRun = function (grid, snake, options) {
|
||||
var s = snake_1.copySnake(snake);
|
||||
var q = [];
|
||||
var commands = [];
|
||||
var u = 100;
|
||||
var u = 500;
|
||||
while (!isGridEmpty(g) && u-- > 0) {
|
||||
var direction = void 0;
|
||||
for (var k = 10; k--;) {
|
||||
@@ -41690,6 +41697,7 @@ var generateContributionSnake_1 = __webpack_require__(1981);
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
_a.trys.push([0, 2, , 3]);
|
||||
console.log("argv", process.argv);
|
||||
console.log(core.getInput("user_name"));
|
||||
console.log(core.getInput("gif_out_path"));
|
||||
console.log("--");
|
||||
|
||||
Reference in New Issue
Block a user